diff options
author | Gavin D. Howard <gavin@gavinhoward.com> | 2023-02-28 14:31:11 -0700 |
---|---|---|
committer | Gavin D. Howard <gavin@gavinhoward.com> | 2023-02-28 14:31:11 -0700 |
commit | 040f6991ef1dac2331208b32e55c515ebf93e408 (patch) | |
tree | d71765c95bd2fac2315ac42ecc50429928a3d150 | |
parent | 8ffdbb86324cfb709f97d7cbe355f9debd9ad675 (diff) | |
download | bc-040f6991ef1dac2331208b32e55c515ebf93e408.tar.gz |
Add more checks to a fuzz build
These checks are built by Clang itself, so they are CFLAGS.
Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
-rwxr-xr-x | scripts/fuzz_prep.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/fuzz_prep.sh b/scripts/fuzz_prep.sh index f7628f64..2c57d94a 100755 --- a/scripts/fuzz_prep.sh +++ b/scripts/fuzz_prep.sh @@ -77,10 +77,10 @@ cd "$scriptdir/.." set -e +CFLAGS="-flto -fstack-protector-all -fsanitize=shadow-call-stack -ffixed-x18 -fsanitize=cfi -fvisibility=hidden" + if [ "$asan" -ne 0 ]; then - CFLAGS="-flto -fsanitize=address" -else - CFLAGS="-flto" + CFLAGS="$CFLAGS -fsanitize=address" fi # We want a debug build because asserts are counted as crashes too. |