diff options
author | asraa <asraa@google.com> | 2020-03-16 11:46:20 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 08:46:20 -0700 |
commit | 98fac43fe2252c58a5ce4d8415924bf355e728b7 (patch) | |
tree | cb197940cdccf36979ad0df3c84b3994d81a6c77 /projects/envoy | |
parent | a35bbeeeae444aff611ce5661d9c7e969f8fa3f7 (diff) |
fix broken build (#3509)
Signed-off-by: Asra Ali <asraa@google.com>
Diffstat (limited to 'projects/envoy')
-rwxr-xr-x | projects/envoy/build.sh | 8 |
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}" |