mirror of
https://github.com/FWGS/hlsdk-xash3d
synced 2024-11-22 18:05:23 +01:00
cmake: set -O3 option to android linker.
This commit is contained in:
parent
2af6840ff4
commit
b8e143f5ac
@ -45,6 +45,7 @@ if(NOT MSVC)
|
|||||||
add_compile_options(-funsafe-math-optimizations) # GCC/Clang flag
|
add_compile_options(-funsafe-math-optimizations) # GCC/Clang flag
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||||
add_compile_options(-O3 -DNDEBUG) # gradle compiles release builds with RelWithDebInfo(-O2 -g) and strips debug symbols.
|
add_compile_options(-O3 -DNDEBUG) # gradle compiles release builds with RelWithDebInfo(-O2 -g) and strips debug symbols.
|
||||||
|
target_link_options(${CLDLL_LIBRARY} PUBLIC "LINKER:-O3")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
@ -41,6 +41,7 @@ if(NOT MSVC)
|
|||||||
add_compile_options(-funsafe-math-optimizations) # GCC/Clang flag
|
add_compile_options(-funsafe-math-optimizations) # GCC/Clang flag
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||||
add_compile_options(-O3 -DNDEBUG) # gradle compiles release builds with RelWithDebInfo(-O2 -g) and strips debug symbols.
|
add_compile_options(-O3 -DNDEBUG) # gradle compiles release builds with RelWithDebInfo(-O2 -g) and strips debug symbols.
|
||||||
|
target_link_options(${SVDLL_LIBRARY} PUBLIC "LINKER:-O3")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user