mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-13 14:27:30 -04:00
Use -O2 for gcc by default (fixes github #14)
This commit is contained in:
parent
86323a0623
commit
ef06b6749e
@ -44,6 +44,9 @@ endif()
|
||||
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
||||
add_compile_options(-fdiagnostics-color=always)
|
||||
# For gcc, -O3 is *much* worse than -O2
|
||||
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG -O2 -g")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O2 -g")
|
||||
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
|
||||
add_compile_options(-fcolor-diagnostics)
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user