]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Disable '-Og' for gcc 7207/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 17 Sep 2018 18:46:36 +0000 (20:46 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 17 Sep 2018 20:17:22 +0000 (22:17 +0200)
cmake/setup_compiler_flags_gnu.cmake

index ae5496f6836e637f522c5e4bf2d27a8b9c1cb721..b971b51edd5d59b27f4774807f1baafec915b4f1 100644 (file)
@@ -182,7 +182,13 @@ IF (CMAKE_BUILD_TYPE MATCHES "Debug")
   LIST(APPEND DEAL_II_DEFINITIONS_DEBUG "DEBUG")
   LIST(APPEND DEAL_II_USER_DEFINITIONS_DEBUG "DEBUG")
 
-  ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-Og")
+  #
+  # In recent versions, gcc often eliminates too much debug information
+  # using '-Og' to be useful.
+  #
+  IF(NOT CMAKE_CXX_COMPILER_ID MATCHES "GNU")
+    ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_DEBUG "-Og")
+  ENDIF()
   #
   # If -Og is not available, fall back to -O0:
   #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.