aboutsummaryrefslogtreecommitdiffhomepage
path: root/projects/envoy/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'projects/envoy/build.sh')
-rwxr-xr-xprojects/envoy/build.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/projects/envoy/build.sh b/projects/envoy/build.sh
index 39ef1b26..9ca013cc 100755
--- a/projects/envoy/build.sh
+++ b/projects/envoy/build.sh
@@ -31,6 +31,14 @@ FUZZER_DICTIONARIES="\
# file. Since the build runs with `-Werror` this will cause it to break, so we
# use `--conlyopt` and `--cxxopt` instead of `--copt`.
#
+# NOTE: We ignore -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION. All envoy fuzz
+# targets link this flag through their build target rule. Passing this in via CLI
+# will pass this to genrules that build unit tests that rely on production
+# behavior. Ignore this flag so these unit tests don't fail by using a modified
+# RE2 library.
+# TODO(asraa): Figure out how to work around this better.
+CFLAGS=${CFLAGS//"-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"/}
+CXXFLAGS=${CXXFLAGS//"-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"/}
declare -r EXTRA_BAZEL_FLAGS="$(
for f in ${CFLAGS}; do
echo "--conlyopt=${f}" "--linkopt=${f}"