From 68fa95beb31528c0c4a45887a7891f809ec5e44e Mon Sep 17 00:00:00 2001 From: hexcoder- Date: Sat, 28 Sep 2019 21:29:33 +0200 Subject: On OpenBSD prefer /usr/local/bin for llvm and clang --- test/test.sh | 4 ++++ 1 file changed, 4 insertions(+) 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' && { -- cgit 1.4.1