mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-10 12:08:43 -04:00
media-gfx/KTX-Software: patches for O3 and Werror
Signed-off-by: Patrick Nicolas <patricknicolas@laposte.net>
This commit is contained in:
parent
70c54412ff
commit
8b6cc09e70
@ -24,6 +24,10 @@ BDEPEND="
|
||||
app-shells/bash
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${P}-remove-O3.patch"
|
||||
"${FILESDIR}/${P}-remove-Werror.patch"
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
# basisu_kernels_sse.cpp has a #error if any of those are set
|
||||
|
@ -0,0 +1,16 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index e99fb143..05691fa4 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -280,11 +280,8 @@ if(MSVC)
|
||||
elseif(${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU"
|
||||
OR ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
|
||||
add_compile_options( -Wall -Wextra $<$<BOOL:${KTX_WERROR}>:-Werror>)
|
||||
- add_compile_options( $<IF:$<CONFIG:Debug>,-O0,-O3> )
|
||||
if(EMSCRIPTEN)
|
||||
add_link_options( $<IF:$<CONFIG:Debug>,-gsource-map,-O3> )
|
||||
- else()
|
||||
- add_link_options( $<IF:$<CONFIG:Debug>,-g,-O3> )
|
||||
endif()
|
||||
else()
|
||||
message(FATAL_ERROR "${CMAKE_CXX_COMPILER_ID} not yet supported.")
|
@ -0,0 +1,12 @@
|
||||
diff --git a/lib/astc-encoder/Source/cmake_core.cmake b/lib/astc-encoder/Source/cmake_core.cmake
|
||||
index eec1f459..eb149503 100644
|
||||
--- a/lib/astc-encoder/Source/cmake_core.cmake
|
||||
+++ b/lib/astc-encoder/Source/cmake_core.cmake
|
||||
@@ -168,7 +168,6 @@ macro(astcenc_set_properties ASTCENC_TARGET_NAME ASTCENC_IS_VENEER)
|
||||
$<${is_gnu_fe}:-Wall>
|
||||
$<${is_gnu_fe}:-Wextra>
|
||||
$<${is_gnu_fe}:-Wpedantic>
|
||||
- $<${is_gnu_fe}:-Werror>
|
||||
$<${is_gnu_fe}:-Wshadow>
|
||||
$<${is_gnu_fe}:-Wdouble-promotion>
|
||||
$<${is_clang}:-Wdocumentation>
|
Loading…
x
Reference in New Issue
Block a user