Author: akhaldi
Date: Fri Oct 30 10:03:44 2015
New Revision: 69740
URL:
http://svn.reactos.org/svn/reactos?rev=69740&view=rev
Log:
[CMAKE/GCC] Set O2 and define NDEBUG for GCC release builds.
Modified:
trunk/reactos/cmake/gcc.cmake
Modified: trunk/reactos/cmake/gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/cmake/gcc.cmake?rev=69740&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Fri Oct 30 10:03:44 2015
@@ -131,7 +131,7 @@
# 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")