media-gfx/waifu2x-ncnn-vulkan: remove automatic lto check

Closes: https://bugs.gentoo.org/830950
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2022-01-10 17:09:52 -05:00
parent 714b6fa318
commit 48c0b0fc94
2 changed files with 23 additions and 1 deletions

View File

@@ -0,0 +1,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)

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -23,6 +23,10 @@ DEPEND="
${RDEPEND}
dev-util/vulkan-headers"
PATCHES=(
"${FILESDIR}"/${PN}-20210521-no-lto.patch
)
src_prepare() {
CMAKE_USE_DIR="${S}/src"
cmake_src_prepare