mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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)
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user