diff options
author | van Hauser <vh@thc.org> | 2020-03-22 18:27:04 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-03-22 18:27:04 +0100 |
commit | 5b646818670c7f8a7a22503883a37c758d7acd64 (patch) | |
tree | cb8935593f4c451bae09ef20c3fd8f2da7aa7c3e /test/checkcommit.sh | |
parent | aac7c7d75d9e6657ba6ac4a6267660f15745ec92 (diff) | |
download | afl++-5b646818670c7f8a7a22503883a37c758d7acd64.tar.gz |
a little bit more performance
Diffstat (limited to 'test/checkcommit.sh')
-rwxr-xr-x | test/checkcommit.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/checkcommit.sh b/test/checkcommit.sh index e36a31a2..27d08d36 100755 --- a/test/checkcommit.sh +++ b/test/checkcommit.sh @@ -8,6 +8,7 @@ test -z "$1" -o -n "$4" && { echo "Switches to the defined commit ID, compiles with profiling and runs" echo "afl-fuzz on a defind target and input directory, saving timing," echo "fuzzer_stats and profiling output to \"<commit-id>.out\"" + echo "Honors CFLAGS and LDFLAGS" echo echo "Defaults:" echo " indir: \"$INDIR\"" @@ -21,8 +22,9 @@ test -n "$3" && CMDLINE=$3 git checkout "$C" || { echo "CHECKOUT FAIL $C" > $C.out ; exit 1 ; } export AFL_BENCH_JUST_ONE=1 -export CFLAGS="-O3 -funroll-loops -pg" -export LDFLAGS=-pg +test -z "$CFLAGS" && CFLAGS="-O3 -funroll-loops" +export CFLAGS="$CFLAGS -pg" +export LDFLAGS="$LDFLAGS -pg" make >/dev/null 2>&1 || echo ERROR: BUILD FAILURE test -x ./afl-fuzz || { echo "BUILD FAIL $C" > $C.out ; make clean ; exit 1 ; } |