From d22e5a49e38a1749afdbff167dec81fb5061c5c6 Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 16 Aug 2022 13:57:25 -0700 Subject: [PATCH] configure: add -Wno-pass-failed for libyuv with certain optimization flags or sanitizers enabled some code may fail to vectorize: third_party/libyuv/source/row_common.cc:3178:7: 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] this was observed with integer/undefined sanitizers using clang 11/13 Bug: b/229626362 Change-Id: I01595c641763c4cd4242e02f2cc5cbabfe69d03e --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 425ab3c..1b850b5 100755 --- a/configure +++ b/configure @@ -676,6 +676,8 @@ process_toolchain() { && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-missing-declarations" check_cxxflags -Wno-missing-prototypes \ && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-missing-prototypes" + check_cxxflags -Wno-pass-failed \ + && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-pass-failed" check_cxxflags -Wno-unused-parameter \ && LIBYUV_CXXFLAGS="${LIBYUV_CXXFLAGS} -Wno-unused-parameter" fi -- 2.7.4