From 739197f624c2efed0838b3a7a92bee2e24ae84b9 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 5 Jun 2018 00:17:04 +0200 Subject: [PATCH] Strip the offending flags instead --- cmake/checks/check_01_cxx_features.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5