[Orxonox-commit 3683] r8364 - code/trunk/cmake

rgrieder at orxonox.net rgrieder at orxonox.net
Sat Apr 30 05:23:22 CEST 2011


Author: rgrieder
Date: 2011-04-30 05:23:22 +0200 (Sat, 30 Apr 2011)
New Revision: 8364

Modified:
   code/trunk/cmake/CompilerConfigGCC.cmake
Log:
Never omit frame pointer on GCC too to avoid unreadable stack traces (even in Release mode).

Modified: code/trunk/cmake/CompilerConfigGCC.cmake
===================================================================
--- code/trunk/cmake/CompilerConfigGCC.cmake	2011-04-30 02:36:04 UTC (rev 8363)
+++ code/trunk/cmake/CompilerConfigGCC.cmake	2011-04-30 03:23:22 UTC (rev 8364)
@@ -60,6 +60,9 @@
   ADD_COMPILER_FLAGS("-fPIC" CACHE)
 ENDIF()
 
+# Never omit frame pointers that could interfere with proper stack traces
+ADD_COMPILER_FLAGS("-fno-omit-frame-pointer" CACHE)
+
 # Enable non standard floating point optimisations
 ADD_COMPILER_FLAGS("-ffast-math" CACHE)
 




More information about the Orxonox-commit mailing list