diff --git a/bazel/external/wee8.BUILD b/bazel/external/wee8.BUILD index 2cc17dcb2374e..3a62ecd9ebf43 100644 --- a/bazel/external/wee8.BUILD +++ b/bazel/external/wee8.BUILD @@ -13,6 +13,9 @@ cc_library( "wee8/include/v8-version.h", "wee8/third_party/wasm-api/wasm.hh", ], + copts = [ + "-Wno-range-loop-analysis", + ], defines = ["ENVOY_WASM_V8"], includes = [ "wee8/include", diff --git a/bazel/external/wee8.genrule_cmd b/bazel/external/wee8.genrule_cmd index cb688bcf45f9f..d8cbd1981a642 100644 --- a/bazel/external/wee8.genrule_cmd +++ b/bazel/external/wee8.genrule_cmd @@ -19,7 +19,7 @@ pushd $$ROOT/wee8 rm -rf out/wee8 # Export compiler configuration. -export CXXFLAGS="$${CXXFLAGS-} -Wno-sign-compare -Wno-deprecated-copy -Wno-unknown-warning-option" +export CXXFLAGS="$${CXXFLAGS-} -Wno-sign-compare -Wno-deprecated-copy -Wno-unknown-warning-option -Wno-range-loop-analysis" if [[ ( `uname` == "Darwin" && $${CXX-} == "" ) || $${CXX-} == *"clang"* ]]; then export IS_CLANG=true export CC=$${CC:-clang}