From: Daniel Arndt Date: Mon, 4 Jun 2018 22:17:04 +0000 (+0200) Subject: Strip the offending flags instead X-Git-Tag: v9.1.0-rc1~1078^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=739197f624c2efed0838b3a7a92bee2e24ae84b9;p=dealii.git Strip the offending flags instead --- diff --git a/cmake/checks/check_01_cxx_features.cmake b/cmake/checks/check_01_cxx_features.cmake index 8ce12c375f..2cf1e382ac 100644 --- a/cmake/checks/check_01_cxx_features.cmake +++ b/cmake/checks/check_01_cxx_features.cmake @@ -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