about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2021-12-11 15:48:58 +0100
committerRick van Schijndel <rol3517@gmail.com>2021-12-11 15:48:58 +0100
commitd40a4fe366439bf4e98f49c16bb9032989ab5f1c (patch)
treee63b50b2d33bd97fa3595a2dbeb0e4aeea545463 /src
parent5ec91ad5291228f6ef6d9b69605a9b752ef28fa0 (diff)
downloadafl++-d40a4fe366439bf4e98f49c16bb9032989ab5f1c.tar.gz
afl-cc: fix incorrect CLANGPP_BIN
This caused CMake to complain that the C compiler was set to C++ mode,
causing the CMake configuration step to fail for all targets.

aflplusplus was built with

make source-only -j8 LLVM_BINDIR= AFL_REAL_LD=
Diffstat (limited to 'src')
-rw-r--r--src/afl-cc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/afl-cc.c b/src/afl-cc.c
index 1448d8ae..cafb8e32 100644
--- a/src/afl-cc.c
+++ b/src/afl-cc.c
@@ -395,7 +395,7 @@ static void edit_params(u32 argc, char **argv, char **envp) {
           snprintf(llvm_fullpath, sizeof(llvm_fullpath), "%s/clang",
                    LLVM_BINDIR);
         else
-          snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANGPP_BIN);
+          snprintf(llvm_fullpath, sizeof(llvm_fullpath), CLANG_BIN);
         alt_cc = llvm_fullpath;
 
       }