eliminate debug info in release, size of executable is 1/10
This commit is contained in:
@@ -14,8 +14,7 @@
|
|||||||
|
|
||||||
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AND NOT MINGW??
|
if(CMAKE_COMPILER_IS_GNUCXX OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang") # AND NOT MINGW??
|
||||||
|
|
||||||
target_compile_options(nana PRIVATE -Wall
|
target_compile_options(nana PRIVATE -Wall)
|
||||||
PUBLIC -g )
|
|
||||||
|
|
||||||
# todo: set in target property of nana
|
# todo: set in target property of nana
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -march=native -mtune=native -DNDEBUG")
|
||||||
|
|||||||
Reference in New Issue
Block a user