Skip to content

Commit 7539a1f

Browse files
committed
[PART OF] Fix AVX512 build with older compilers
avoids an intrinsic that is missing in gcc < 10. For this target, might trigger another gcc bug on windows that requires up-to-date gcc 8, 9, or 10, or usage of clang. Fixes official-stockfish#2975 closes official-stockfish#2976 No functional change
1 parent c6b80f2 commit 7539a1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ endif
415415
ifeq ($(avx512),yes)
416416
CXXFLAGS += -DUSE_AVX512
417417
ifeq ($(comp),$(filter $(comp),gcc clang mingw))
418-
CXXFLAGS += -mavx512bw
418+
CXXFLAGS += -mavx512f -mavx512bw
419419
endif
420420
endif
421421

0 commit comments

Comments
 (0)