diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-12-04 15:41:24 +0100 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-12-04 15:41:24 +0100 |
commit | 1aebbd7490b39a39c31d473af536b7f932412cb6 (patch) | |
tree | 3b75a5a065efc2d363b3303c9f84cc11cfab1eb4 /test | |
parent | 330f33a4356f46f25d0930aa61ef18c78a559fea (diff) | |
parent | 3d233b34b88dc49b33e4d1f91668194c6f59637a (diff) | |
download | afl++-1aebbd7490b39a39c31d473af536b7f932412cb6.tar.gz |
Merge branch 'dev' of github.com:aflplusplus/aflplusplus into dev
Diffstat (limited to 'test')
-rwxr-xr-x | test/test-pre.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test-pre.sh b/test/test-pre.sh index fc84cb47..4c708a68 100755 --- a/test/test-pre.sh +++ b/test/test-pre.sh @@ -106,7 +106,14 @@ export AFL_LLVM_INSTRUMENT=AFL test -e /usr/local/bin/opt && { export PATH="/usr/local/bin:${PATH}" } -AFL_GCC=afl-gcc +# on MacOS X we prefer afl-clang over afl-gcc, because +# afl-gcc does not work there +test `uname -s` = 'Darwin' -o `uname -s` = 'FreeBSD' && { + AFL_GCC=afl-clang +} || { + AFL_GCC=afl-gcc +} +command -v gcc >/dev/null 2>&1 || AFL_GCC=afl-clang SYS=`uname -m` |