From d489df7cfbfbb30a6440e2961106bd2f832f1494 Mon Sep 17 00:00:00 2001 From: Konstantin Varlamov Date: Fri, 4 Aug 2023 15:11:31 -0700 Subject: [PATCH] [libc++][PSTL] Disable `-Wpass-failed`. PSTL contains many pragmas that request loop vectorization, which would produce a warning when the compiler is unable to fulfill the request (if `-Wpass-failed` is enabled). This is normal and expected in some cases, and we don't want `-Werror` to turn that into a compilation failure. Differential Revision: https://reviews.llvm.org/D157145 (cherry picked from commit 1d340250a894b6ec956e2145b2fc7babbf83e61b) --- libcxx/utils/libcxx/test/params.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libcxx/utils/libcxx/test/params.py b/libcxx/utils/libcxx/test/params.py index 2e14a64..f43c634 100644 --- a/libcxx/utils/libcxx/test/params.py +++ b/libcxx/utils/libcxx/test/params.py @@ -51,6 +51,10 @@ _warningFlags = [ # Disable warnings for extensions used in C++03 "-Wno-local-type-template-args", "-Wno-c++11-extensions", + + # Don't fail compilation in case the compiler fails to perform the requested + # loop vectorization. + "-Wno-pass-failed", ] _allStandards = ["c++03", "c++11", "c++14", "c++17", "c++20", "c++23", "c++26"] -- 2.7.4