Author: akhaldi
Date: Mon Jun 15 17:26:04 2015
New Revision: 68148
URL:
http://svn.reactos.org/svn/reactos?rev=68148&view=rev
Log:
[CMAKE] Disable debugging related GCC flags in release mode.
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=68148&…
==============================================================================
--- trunk/reactos/cmake/gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/cmake/gcc.cmake [iso-8859-1] Mon Jun 15 17:26:04 2015
@@ -87,12 +87,14 @@
endif()
# Debugging
-if(SEPARATE_DBG)
- add_compile_flags("-gdwarf-2 -ggdb")
-else()
- add_compile_flags("-gdwarf-2 -gstrict-dwarf")
- if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
- add_compile_flags("-femit-struct-debug-detailed=none
-feliminate-unused-debug-symbols")
+if(NOT CMAKE_BUILD_TYPE STREQUAL "Release")
+ if(SEPARATE_DBG)
+ add_compile_flags("-gdwarf-2 -ggdb")
+ else()
+ add_compile_flags("-gdwarf-2 -gstrict-dwarf")
+ if(NOT CMAKE_C_COMPILER_ID STREQUAL "Clang")
+ add_compile_flags("-femit-struct-debug-detailed=none
-feliminate-unused-debug-symbols")
+ endif()
endif()
endif()