diff options
author | van Hauser <vh@thc.org> | 2020-01-17 16:17:08 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-01-17 16:17:08 +0100 |
commit | 800d43b84666461cb682be20fdc5df48c13c252b (patch) | |
tree | fbbd64cc5bc30db47029764e963ccf800932ad72 | |
parent | cb23fe2aba8487464755abe2debfb78980cc5eba (diff) | |
download | afl++-800d43b84666461cb682be20fdc5df48c13c252b.tar.gz |
small change for march=native
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | docs/ChangeLog | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile index d208f509..703ed673 100644 --- a/Makefile +++ b/Makefile @@ -44,15 +44,15 @@ else endif endif -CFLAGS ?= -O3 -funroll-loops +ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" + CFLAGS_OPT = -march=native +endif + +CFLAGS ?= -O3 -funroll-loops $(CFLAGS_OPT) CFLAGS += -Wall -g -Wno-pointer-sign -I include/ \ -DAFL_PATH=\"$(HELPER_PATH)\" -DBIN_PATH=\"$(BIN_PATH)\" \ -DDOC_PATH=\"$(DOC_PATH)\" -Wno-unused-function -ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" - CFLAGS += -march=native -endif - AFL_FUZZ_FILES = $(wildcard src/afl-fuzz*.c) ifneq "($filter %3.7m, $(shell python3.7m-config --includes 2>/dev/null)" "" diff --git a/docs/ChangeLog b/docs/ChangeLog index 594f75e9..5347d244 100644 --- a/docs/ChangeLog +++ b/docs/ChangeLog @@ -17,6 +17,7 @@ sending a mail to <afl-users+subscribe@googlegroups.com>. Version ++2.60d (develop): -------------------------- + - use -march=native if available - afl-fuzz: - now prints the real python version support compiled in - set stronger performance compile options and little tweaks |