]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Use -Wno-pass-failed for clang 13963/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 13 Jun 2022 02:20:19 +0000 (21:20 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 13 Jun 2022 02:20:19 +0000 (21:20 -0500)
cmake/setup_compiler_flags_gnu.cmake

index df9df4f3eceb304eb3269b2927af542b237a2d71..2a2315bac5e052e82f094fd1718f0d88930da7ed 100644 (file)
@@ -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()
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.