From: Daniel Arndt Date: Fri, 30 Jun 2023 20:30:42 +0000 (-0400) Subject: Unconditionally try enabling ffp-exception-behavior=strict X-Git-Tag: relicensing~823^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35d8df339a6c60dc080253288b9decf4e44888cb;p=dealii.git Unconditionally try enabling ffp-exception-behavior=strict --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 4ad63ecc2b..aeed104ec6 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -212,19 +212,7 @@ if (CMAKE_BUILD_TYPE MATCHES "Debug") # # https://github.com/dealii/dealii/issues/15496 # - # ... except this doesn't presently work with AppleClang versions before 16.0. - # They support this flag but it is not compatible with C++14: see - # - # https://github.com/dealii/dealii/issues/15531 - # - # This flag works with standard Clang 13.0 or newer. - # - if((CMAKE_CXX_COMPILER_ID STREQUAL "Clang" - AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "13.0") - OR (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" - AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "16.0")) - enable_if_supported(DEAL_II_CXX_FLAGS_DEBUG "-ffp-exception-behavior=strict") - endif() + enable_if_supported(DEAL_II_CXX_FLAGS_DEBUG "-ffp-exception-behavior=strict") # # In recent versions, gcc often eliminates too much debug information