Allow fuzzer CFLAGS to be overridden by envrionment
This commit is contained in:
parent
2721f72c41
commit
c57f8ae0a6
2 changed files with 8 additions and 5 deletions
|
|
@ -15,13 +15,16 @@ CC=${CC:-clang}
|
|||
CXX=${CXX:-clang++}
|
||||
LINK=${LINK:-clang++}
|
||||
|
||||
CC=$CC CXX=$CXX LINK=$LINK ./script/configure
|
||||
default_fuzz_flags="-fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard"
|
||||
|
||||
CFLAGS=${CFLAGS:-"$default_fuzz_flags"}
|
||||
CXXFLAGS=${CXXFLAGS:-"$default_fuzz_flags"}
|
||||
|
||||
CC=$CC CXX=$CXX LINK=$LINK CFLAGS=$CFLAGS CXXFLAGS=$CXXFLAGS ./script/configure
|
||||
|
||||
export BUILDTYPE=Fuzz
|
||||
make runtime
|
||||
|
||||
CFLAGS="-fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard"
|
||||
CXXFLAGS="-fsanitize=address,undefined -fsanitize-coverage=trace-pc-guard"
|
||||
|
||||
if [ -z "$@" ]; then
|
||||
languages=$(ls test/fixtures/grammars)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue