about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2021-06-05 17:07:42 +0200
committerhexcoder- <heiko@hexco.de>2021-06-05 17:07:42 +0200
commit8f04269e179bd38390acef57ca3ea3e33a2f9a5e (patch)
tree3ca2c0751d80e1475b27cb4ab901d950d3b39296
parent2988dd206c8bfdde67b59f334fe0332c31113a1e (diff)
downloadafl++-8f04269e179bd38390acef57ca3ea3e33a2f9a5e.tar.gz
Revert "setting AFL_CC for test-llvm.sh on FreeBSD is not necessary anymore"
This reverts commit 2988dd206c8bfdde67b59f334fe0332c31113a1e.
-rwxr-xr-xtest/test-llvm.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-llvm.sh b/test/test-llvm.sh
index 7cdc83cb..1152cc4e 100755
--- a/test/test-llvm.sh
+++ b/test/test-llvm.sh
@@ -4,6 +4,14 @@
 
 $ECHO "$BLUE[*] Testing: llvm_mode, afl-showmap, afl-fuzz, afl-cmin and afl-tmin"
 test -e ../afl-clang-fast -a -e ../split-switches-pass.so && {
+  # on FreeBSD need to set AFL_CC
+  test `uname -s` = 'FreeBSD' && {
+    if type clang >/dev/null; then
+      export AFL_CC=`command -v clang`
+    else
+      export AFL_CC=`$LLVM_CONFIG --bindir`/clang
+    fi
+  }
   ../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
   AFL_HARDEN=1 ../afl-clang-fast -o test-compcov.harden test-compcov.c > /dev/null 2>&1
   test -e test-instr.plain && {