disabling march=native due problems on intel platforms

This commit is contained in:
vanhauser-thc 2021-02-14 18:43:43 +01:00
parent 95c77c8486
commit fe9da70705
3 changed files with 12 additions and 12 deletions

View File

@ -55,9 +55,9 @@ RUN cd /afl-cov && make install && cd ..
COPY . /AFLplusplus COPY . /AFLplusplus
WORKDIR /AFLplusplus WORKDIR /AFLplusplus
RUN export REAL_CXX=g++-10 && export CC=gcc-10 && \ RUN export export CC=gcc-10 && \
export CXX=g++-10 && make clean && \ export CXX=g++-10 && make clean && \
make distrib CFLAGS="-O3 -funroll-loops -D_FORTIFY_SOURCE=2" && make install && make clean make distrib && make install && make clean
RUN echo 'alias joe="jupp --wordwrap"' >> ~/.bashrc RUN echo 'alias joe="jupp --wordwrap"' >> ~/.bashrc
RUN echo 'export PS1="[afl++]$PS1"' >> ~/.bashrc RUN echo 'export PS1="[afl++]$PS1"' >> ~/.bashrc

View File

@ -77,17 +77,17 @@ ifeq "$(shell echo 'int main() {return 0; }' | $(CC) -fno-move-loop-invariants -
SPECIAL_PERFORMANCE += -fno-move-loop-invariants -fdisable-tree-cunrolli SPECIAL_PERFORMANCE += -fno-move-loop-invariants -fdisable-tree-cunrolli
endif endif
ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1" #ifeq "$(shell echo 'int main() {return 0; }' | $(CC) $(CFLAGS) -Werror -x c - -march=native -o .test 2>/dev/null && echo 1 || echo 0 ; rm -f .test )" "1"
ifndef SOURCE_DATE_EPOCH # ifndef SOURCE_DATE_EPOCH
HAVE_MARCHNATIVE = 1 # HAVE_MARCHNATIVE = 1
CFLAGS_OPT += -march=native # CFLAGS_OPT += -march=native
endif # endif
endif #endif
ifneq "$(shell uname)" "Darwin" ifneq "$(shell uname)" "Darwin"
ifeq "$(HAVE_MARCHNATIVE)" "1" #ifeq "$(HAVE_MARCHNATIVE)" "1"
SPECIAL_PERFORMANCE += -march=native # SPECIAL_PERFORMANCE += -march=native
endif #endif
# OS X does not like _FORTIFY_SOURCE=2 # OS X does not like _FORTIFY_SOURCE=2
ifndef DEBUG ifndef DEBUG
CFLAGS_OPT += -D_FORTIFY_SOURCE=2 CFLAGS_OPT += -D_FORTIFY_SOURCE=2

@ -1 +1 @@
Subproject commit 246c1777f453a280cbafc57f92742147ffc72818 Subproject commit 9a258d5b7a38c045a6e385fcfcf80a746a60e557