about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml2
-rw-r--r--GNUmakefile14
-rw-r--r--src/afl-cc.c14
3 files changed, 8 insertions, 22 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 9b2031ae..bd16602f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -32,7 +32,7 @@ jobs:
       - 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 LLVM_CONFIG=llvm-config-12
+        run: export NO_NYX=1; export ASAN_BUILD=1; export LLVM_CONFIG=llvm-config-12; 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/GNUmakefile b/GNUmakefile
index be5b8146..2226b5a7 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -653,16 +653,16 @@ endif
 	# -$(MAKE) -C utils/plot_ui
 	-$(MAKE) -C frida_mode
 ifneq "$(SYS)" "Darwin"
-  ifeq "$(ARCH)" "aarch64"
-    ifndef NO_CORESIGHT
+ifeq "$(ARCH)" "aarch64"
+  ifndef NO_CORESIGHT
 	-$(MAKE) -C coresight_mode
-    endif
   endif
-  ifeq "$(SYS)" "Linux"
-    ifndef NO_NYX
+endif
+ifeq "$(SYS)" "Linux"
+ifndef NO_NYX
 	-cd nyx_mode && ./build_nyx_support.sh
-    endif
-  endif
+endif
+endif
 	-cd qemu_mode && sh ./build_qemu_support.sh
   ifeq "$(ARCH)" "aarch64"
     ifndef NO_UNICORN_ARM64
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 24dc1055..c300ddfc 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -1458,13 +1458,11 @@ 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) {
@@ -1480,8 +1478,6 @@ printf("is gcc %d == %d || %d == %d\n", aflcc->compiler_mode, GCC, aflcc->compil
           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);
-
       }
 
     }
@@ -3443,29 +3439,19 @@ int main(int argc, char **argv, char **envp) {
 
   mode_final_checkout(aflcc, argc, argv);
 
-  printf("DEBUGXXX0: param0=%s aflcc->compiler_mode=%d aflcc->instrument_mode=%d\n", aflcc->cc_params[0], aflcc->compiler_mode, aflcc->instrument_mode);
-
   process_params(aflcc, 1, argc, argv);
 
   maybe_usage(aflcc, argc, argv);
 
-  printf("DEBUGXXX1: param0=%s aflcc->compiler_mode=%d aflcc->instrument_mode=%d\n", aflcc->cc_params[0], aflcc->compiler_mode, aflcc->instrument_mode);
-
   mode_notification(aflcc);
 
   if (aflcc->debug) debugf_args(argc, argv);
 
-  printf("DEBUGXXX2: param0=%s aflcc->compiler_mode=%d aflcc->instrument_mode=%d\n", aflcc->cc_params[0], aflcc->compiler_mode, aflcc->instrument_mode);
-
   edit_params(aflcc, argc, argv, envp);
 
-  printf("DEBUGXXX3: param0=%s aflcc->compiler_mode=%d aflcc->instrument_mode=%d\n", aflcc->cc_params[0], aflcc->compiler_mode, aflcc->instrument_mode);
-
   if (aflcc->debug)
     debugf_args((s32)aflcc->cc_par_cnt, (char **)aflcc->cc_params);
 
-  printf("DEBUGXXX4: param0=%s aflcc->compiler_mode=%d aflcc->instrument_mode=%d\n", aflcc->cc_params[0], aflcc->compiler_mode, aflcc->instrument_mode);
-
   if (aflcc->passthrough) {
 
     argv[0] = aflcc->cc_params[0];