summaryrefslogtreecommitdiff
path: root/media-gfx/waifu2x-ncnn-vulkan/files/waifu2x-ncnn-vulkan-20210521-no-lto.patch
blob: 301f6fca4276fdd87e41039022183926f35e5eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Users should be the ones to choose to add -flto or not and how. The test
may also cause unnecessary noise wrt https://bugs.gentoo.org/830950
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -42,13 +42,4 @@
 
 # enable global link time optimization
-cmake_policy(SET CMP0069 NEW)
-set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
-include(CheckIPOSupported)
-check_ipo_supported(RESULT ipo_supported OUTPUT ipo_supported_output)
-if(ipo_supported)
-    set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
-else()
-    message(WARNING "IPO is not supported: ${ipo_supported_output}")
-endif()
 
 if(USE_SYSTEM_NCNN)