mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
fix a few cur_time uses
This commit is contained in:
16
src/afl-cc.c
16
src/afl-cc.c
@ -1574,12 +1574,12 @@ int main(int argc, char **argv, char **envp) {
|
||||
else if (have_gcc_plugin)
|
||||
compiler_mode = GCC_PLUGIN;
|
||||
else if (have_gcc)
|
||||
#ifdef __APPLE__
|
||||
// on OSX clang masquerades as GCC
|
||||
compiler_mode = CLANG;
|
||||
#else
|
||||
compiler_mode = GCC;
|
||||
#endif
|
||||
#ifdef __APPLE__
|
||||
// on OSX clang masquerades as GCC
|
||||
compiler_mode = CLANG;
|
||||
#else
|
||||
compiler_mode = GCC;
|
||||
#endif
|
||||
else if (have_lto)
|
||||
compiler_mode = LTO;
|
||||
else
|
||||
@ -1602,8 +1602,10 @@ int main(int argc, char **argv, char **envp) {
|
||||
}
|
||||
|
||||
if (compiler_mode == CLANG) {
|
||||
|
||||
instrument_mode = INSTRUMENT_CLANG;
|
||||
setenv(CLANG_ENV_VAR, "1", 1); // used by afl-as
|
||||
setenv(CLANG_ENV_VAR, "1", 1); // used by afl-as
|
||||
|
||||
}
|
||||
|
||||
if (argc < 2 || strncmp(argv[1], "-h", 2) == 0) {
|
||||
|
Reference in New Issue
Block a user