diff options
author | hexcoder- <heiko@hexco.de> | 2019-09-28 21:29:33 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-09-28 21:29:33 +0200 |
commit | 68fa95beb31528c0c4a45887a7891f809ec5e44e (patch) | |
tree | 0b5425ee3948b94a191b044b11314f24fdb265e8 | |
parent | 942245b9852e4028f1ec5785c5b8f6df9301b279 (diff) | |
download | afl++-68fa95beb31528c0c4a45887a7891f809ec5e44e.tar.gz |
On OpenBSD prefer /usr/local/bin for llvm and clang
-rwxr-xr-x | test/test.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index b3aed628..bd0efa4d 100755 --- a/test/test.sh +++ b/test/test.sh @@ -39,6 +39,10 @@ unset AFL_LLVM_LAF_SPLIT_SWITCHES unset AFL_LLVM_LAF_TRANSFORM_COMPARES unset AFL_LLVM_LAF_SPLIT_COMPARES +# on OpenBSD we need to work with llvm from /usr/local/bin +test -e /usr/local/bin/opt && { + export PATH=/usr/local/bin:${PATH} +} # 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' && { |