gcc plugin little update proposal.

like its llvm counterpart, passing the compiler chain used
to avoid using necessarily AFL_CC/AFL_CXX.
This commit is contained in:
David Carlier
2019-11-12 09:13:13 +00:00
parent 760d4991f3
commit 8f188194c1
2 changed files with 3 additions and 3 deletions

View File

@ -119,12 +119,12 @@ static void edit_params(u32 argc, char** argv) {
if (!strcmp(name, "afl-g++-fast")) {
u8* alt_cxx = getenv("AFL_CXX");
cc_params[0] = alt_cxx ? alt_cxx : (u8*)"g++";
cc_params[0] = alt_cxx ? alt_cxx : (u8*)AFL_GCC_CXX;
} else {
u8* alt_cc = getenv("AFL_CC");
cc_params[0] = alt_cc ? alt_cc : (u8*)"gcc";
cc_params[0] = alt_cc ? alt_cc : (u8*)AFL_GCC_CC;
}