about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml7
-rw-r--r--src/afl-cc.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fdf618b9..0a18a891 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,17 +23,16 @@ jobs:
       - name: debug
         run: apt-cache search plugin-dev | grep gcc-; echo; apt-cache search clang-format- | grep clang-format-
       - name: update
-        run: sudo apt-get update
-        # && sudo apt-get upgrade -y
+        run: sudo apt-get update && sudo apt-get upgrade -y
       - name: install packages
         #run: sudo apt-get install -y -m -f --install-suggests build-essential git libtool libtool-bin automake bison libglib2.0-0 clang llvm-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
-        run: sudo apt-get install -y -m -f build-essential git libtool libtool-bin automake flex bison libglib2.0-0 clang llvm-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
+        run: sudo apt-get install -y -m -f build-essential git libtool libtool-bin automake flex bison libglib2.0-0 clang-12 llvm-12-dev libc++-dev findutils libcmocka-dev python3-dev python3-setuptools ninja-build python3-pip
       - name: compiler installed
         run: gcc -v; echo; clang -v
       - name: install gcc plugin
         run: sudo apt-get install -y -m -f --install-suggests $(readlink /usr/bin/gcc)-plugin-dev
       - name: build afl++
-        run: make distrib ASAN_BUILD=1 NO_NYX=1
+        run: make distrib ASAN_BUILD=1 NO_NYX=1 LLVM_CONFIG=llvm-config-12
       - name: run tests
         run: sudo -E ./afl-system-config; make tests
  # macos:
diff --git a/src/afl-cc.c b/src/afl-cc.c
index a3b453fc..24dc1055 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -1458,11 +1458,13 @@ void add_real_argv0(aflcc_state_t *aflcc) {
   } else {
 
     u8 *alt_cc = getenv("AFL_CC");
+printf("AFL_CC=%s\n", alt_cc);
 
     if (!alt_cc) {
 
       if (aflcc->compiler_mode == GCC || aflcc->compiler_mode == GCC_PLUGIN) {
 
+printf("is gcc %d == %d || %d == %d\n", aflcc->compiler_mode, GCC, aflcc->compiler_mode, GCC_PLUGIN);
         alt_cc = "gcc";
 
       } else if (aflcc->compiler_mode == CLANG) {
@@ -1478,6 +1480,8 @@ void add_real_argv0(aflcc_state_t *aflcc) {
           snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANG_BIN);
         alt_cc = llvm_fullpath;
 
+printf("use_bindir=%s llvm_fullpath=%s\n", USE_BINDIR ? "true" : "false", llvm_fullpath);
+
       }
 
     }