This commit is contained in:
vanhauser-thc
2024-02-01 11:43:04 +01:00
parent 76a033431d
commit e5d305ad42
2 changed files with 7 additions and 4 deletions

View File

@ -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);
}
}