mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 03:48:08 +00:00
fix LTO
This commit is contained in:
@ -307,7 +307,7 @@ all: test_x86 test_shm test_python ready $(PROGS) afl-as llvm gcc_plugin test_bu
|
|||||||
|
|
||||||
.PHONY: llvm
|
.PHONY: llvm
|
||||||
llvm:
|
llvm:
|
||||||
-$(MAKE) -j4 -f GNUmakefile.llvm
|
-$(MAKE) -j -f GNUmakefile.llvm
|
||||||
@test -e afl-cc || { echo "[-] Compiling afl-cc failed. You seem not to have a working compiler." ; exit 1; }
|
@test -e afl-cc || { echo "[-] Compiling afl-cc failed. You seem not to have a working compiler." ; exit 1; }
|
||||||
|
|
||||||
.PHONY: gcc_plugin
|
.PHONY: gcc_plugin
|
||||||
@ -579,7 +579,7 @@ deepclean: clean
|
|||||||
|
|
||||||
.PHONY: distrib
|
.PHONY: distrib
|
||||||
distrib: all
|
distrib: all
|
||||||
-$(MAKE) -j4 -f GNUmakefile.llvm
|
-$(MAKE) -j -f GNUmakefile.llvm
|
||||||
-$(MAKE) -f GNUmakefile.gcc_plugin
|
-$(MAKE) -f GNUmakefile.gcc_plugin
|
||||||
$(MAKE) -C utils/libdislocator
|
$(MAKE) -C utils/libdislocator
|
||||||
$(MAKE) -C utils/libtokencap
|
$(MAKE) -C utils/libtokencap
|
||||||
@ -602,7 +602,7 @@ binary-only: test_shm test_python ready $(PROGS)
|
|||||||
|
|
||||||
.PHONY: source-only
|
.PHONY: source-only
|
||||||
source-only: all
|
source-only: all
|
||||||
-$(MAKE) -j4 -f GNUmakefile.llvm
|
-$(MAKE) -j -f GNUmakefile.llvm
|
||||||
-$(MAKE) -f GNUmakefile.gcc_plugin
|
-$(MAKE) -f GNUmakefile.gcc_plugin
|
||||||
$(MAKE) -C utils/libdislocator
|
$(MAKE) -C utils/libdislocator
|
||||||
$(MAKE) -C utils/libtokencap
|
$(MAKE) -C utils/libtokencap
|
||||||
|
10
src/afl-cc.c
10
src/afl-cc.c
@ -1030,9 +1030,9 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
compiler_mode = GCC;
|
compiler_mode = GCC;
|
||||||
|
|
||||||
} else if (strncmp(callname, "afl-clang", 9) == 0 &&
|
} else if (strcmp(callname, "afl-clang") == 0 ||
|
||||||
|
|
||||||
strstr(callname, "fast") == NULL) {
|
strcmp(callname, "afl-clang++") == 0) {
|
||||||
|
|
||||||
compiler_mode = CLANG;
|
compiler_mode = CLANG;
|
||||||
|
|
||||||
@ -1076,13 +1076,13 @@ int main(int argc, char **argv, char **envp) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp(callname, "afl-clang", 9) == 0 &&
|
if (strcmp(callname, "afl-clang") == 0 ||
|
||||||
strstr(callname, "fast") == NULL) {
|
strcmp(callname, "afl-clang++") == 0) {
|
||||||
|
|
||||||
clang_mode = 1;
|
clang_mode = 1;
|
||||||
compiler_mode = CLANG;
|
compiler_mode = CLANG;
|
||||||
|
|
||||||
if (strncmp(callname, "afl-clang++", 11) == 0) { plusplus_mode = 1; }
|
if (strcmp(callname, "afl-clang++") == 0) { plusplus_mode = 1; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user