]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Strip the offending flags instead 6700/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 4 Jun 2018 22:17:04 +0000 (00:17 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 4 Jun 2018 22:17:04 +0000 (00:17 +0200)
cmake/checks/check_01_cxx_features.cmake

index 8ce12c375f4738d1001b47b24750803b56ffc182..2cf1e382ac49186576a6694a7c6f366f0fa65d44 100644 (file)
@@ -277,7 +277,9 @@ IF(NOT DEFINED DEAL_II_WITH_CXX14 OR DEAL_II_WITH_CXX14)
     #
     # https://llvm.org/bugs/show_bug.cgi?id=16876
     #
-    PUSH_CMAKE_REQUIRED("-g")
+    SET(_flags "${DEAL_II_CXX_FLAGS_DEBUG}")
+    STRIP_FLAG(_flags "-Wa,--compress-debug-sections")
+    PUSH_CMAKE_REQUIRED("${_flags}")
     CHECK_CXX_SOURCE_COMPILES(
       "
       struct foo

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.