mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 17:05:46 +00:00
[CMAKE/GCC] Set O2 and define NDEBUG for GCC release builds.
svn path=/trunk/; revision=69740
This commit is contained in:
parent
a0c61c370a
commit
22c6dc878b
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ endif()
|
|||
# Optimizations
|
||||
# FIXME: Revisit this to see if we even need these levels
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
add_compile_flags("-O3")
|
||||
add_compile_flags("-O2 -DNDEBUG")
|
||||
else()
|
||||
if(OPTIMIZE STREQUAL "1")
|
||||
add_compile_flags("-Os -ftracer")
|
||||
|
|
Loading…
Reference in a new issue