From ca50d6799da337ffbd58dbaadfed0c9f8a969e32 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 20 Nov 2017 22:41:22 +0000 Subject: [PATCH] Add -mno-avx2 for clang as well as -mno-avx. We don't want either of them when asking for no SIMD. Reviewed by: emaste@ Sponsored by: Netflix --- share/mk/bsd.cpu.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/mk/bsd.cpu.mk b/share/mk/bsd.cpu.mk index f05dbc3ae011..81d97f2808c9 100644 --- a/share/mk/bsd.cpu.mk +++ b/share/mk/bsd.cpu.mk @@ -393,7 +393,7 @@ CFLAGS += ${_CPUCFLAGS} # (-mfpmath= is not supported) # .if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" -CFLAGS_NO_SIMD.clang= -mno-avx +CFLAGS_NO_SIMD.clang= -mno-avx -mno-avx2 CFLAGS_NO_SIMD= -mno-mmx -mno-sse .endif CFLAGS_NO_SIMD += ${CFLAGS_NO_SIMD.${COMPILER_TYPE}}