File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -962,6 +962,13 @@ if (LLVM_ENABLE_WARNINGS AND (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL))
962
962
963
963
# Enable -Wctad-maybe-unsupported to catch unintended use of CTAD.
964
964
add_flag_if_supported("-Wctad-maybe-unsupported" CTAD_MAYBE_UNSPPORTED_FLAG)
965
+
966
+ # Disable -Wno-pass-failed flag, which reports failure to perform
967
+ # optimizations suggested by pragmas. This warning is not relevant for LLVM
968
+ # projects and may be injected by pragmas in libstdc++.
969
+ # FIXME: Reconsider this choice if warnings from STL headers can be reliably
970
+ # avoided (https://github.com/llvm/llvm-project/issues/157666).
971
+ add_flag_if_supported("-Wno-pass-failed" NO_PASS_FAILED_FLAG)
965
972
endif (LLVM_ENABLE_WARNINGS AND (LLVM_COMPILER_IS_GCC_COMPATIBLE OR CLANG_CL))
966
973
967
974
if (LLVM_COMPILER_IS_GCC_COMPATIBLE AND NOT LLVM_ENABLE_WARNINGS)
Original file line number Diff line number Diff line change @@ -110,12 +110,6 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
110
110
endif ()
111
111
endif ()
112
112
113
- # libstdc++15 makes use of an unroll pragma inside std::find_if(). This
114
- # produces a warning if clang fails to unroll the loop. As this pragma is
115
- # outside of our control, suppress the warning.
116
- check_cxx_compiler_flag("-Wno-pass-failed" CXX_SUPPORTS_WNO_PASS_FAILED)
117
- append_if(CXX_SUPPORTS_WNO_PASS_FAILED "-Wno-pass-failed" CMAKE_CXX_FLAGS )
118
-
119
113
# Installing the headers and docs needs to depend on generating any public
120
114
# tablegen'd targets.
121
115
# mlir-generic-headers are dialect-independent.
You can’t perform that action at this time.
0 commit comments