mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-03 09:00:21 +00:00
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
This commit is contained in:
parent
c95dc95b35
commit
ca50d6799d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=326037
@ -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}}
|
||||
|
Loading…
Reference in New Issue
Block a user