From 0f7abb71da6c456679bcb751389d07ae9638c6d8 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 12 Jun 2022 21:20:19 -0500 Subject: [PATCH] CMake: Use -Wno-pass-failed for clang --- cmake/setup_compiler_flags_gnu.cmake | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index df9df4f3ec..2a2315bac5 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -152,6 +152,19 @@ IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.3") ) ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-unused-function") ENDIF() + + # + # Clang-14.0.5 complaines loudly about not being able to vectorize some + # of our loops that we have annotated with DEAL_II_OPENMP_SIMD: + # + # warning: loop not vectorized: the optimizer was unable to perform + # the requested transformation; the transformation might be disabled + # or specified as part of an unsupported transformation ordering + # [-Wpass-failed=transform-warning] + # + # Let us simply disable the warning for now. + # + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS "-Wno-pass-failed") ENDIF() -- 2.39.5