From 9909e1f515e12829abbe18f186e4508eba5c29cc Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 11 Aug 2024 13:59:19 -0500 Subject: [PATCH] CMake: do not set -fstrict-aliasing explicitly This flag is part of the -O2 optimization set already. So let's not set it manually. --- cmake/setup_compiler_flags_gnu.cmake | 1 - 1 file changed, 1 deletion(-) 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 -- 2.39.5