Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake: Use -Wno-pass-failed for clang #13963

Merged
merged 1 commit into from
Jun 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 13 additions & 0 deletions cmake/setup_compiler_flags_gnu.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()


Expand Down