freeorion: remove -O3
This commit is contained in:
parent
3e0728c483
commit
03adf7c630
1 changed files with 18 additions and 0 deletions
18
srcpkgs/freeorion/patches/fix-cflags.patch
Normal file
18
srcpkgs/freeorion/patches/fix-cflags.patch
Normal file
|
@ -0,0 +1,18 @@
|
|||
Index: CMakeLists.txt
|
||||
===================================================================
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -432,13 +432,6 @@ if(MSVC)
|
||||
)
|
||||
endif()
|
||||
|
||||
-target_compile_options(freeorionparseobj
|
||||
- PRIVATE
|
||||
- $<$<CXX_COMPILER_ID:Clang>:-ftemplate-depth=512>
|
||||
- $<$<CXX_COMPILER_ID:AppleClang>:-ftemplate-depth=512>
|
||||
- $<$<AND:$<NOT:$<BOOL:${BUILD_TESTING}>>,$<CXX_COMPILER_ID:GNU>>:-O3>
|
||||
-)
|
||||
-
|
||||
target_compile_definitions(freeorionparseobj
|
||||
PUBLIC
|
||||
-DBOOST_ALL_DYN_LINK
|
Loading…
Reference in a new issue