From: Matthias Maier Date: Sun, 11 Aug 2024 18:59:19 +0000 (-0500) Subject: CMake: do not set -fstrict-aliasing explicitly X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9909e1f515e12829abbe18f186e4508eba5c29cc;p=dealii.git CMake: do not set -fstrict-aliasing explicitly This flag is part of the -O2 optimization set already. So let's not set it manually. --- diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 0a28cd0e21..263c57bc85 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -162,7 +162,6 @@ if (CMAKE_BUILD_TYPE MATCHES "Release") enable_if_supported(DEAL_II_CXX_FLAGS_RELEASE "-funroll-loops") enable_if_supported(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops") - enable_if_supported(DEAL_II_CXX_FLAGS_RELEASE "-fstrict-aliasing") # # Disable assert() in deal.II and user projects in release mode