small change for march=native

This commit is contained in:
van Hauser
2020-01-17 16:17:08 +01:00
parent cb23fe2aba
commit 800d43b846
2 changed files with 6 additions and 5 deletions

View File

@ -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)" ""

View File

@ -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