1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-11 19:49:14 +00:00

Output the SSE2 flag in compiler_info

was missing in the list of outputs, slightly reorder flags.
explicitly add -msse2 if USE_SSE2 (is implicit already, -msse -m64).

closes https://github.com/official-stockfish/Stockfish/pull/2990

No functional change.
This commit is contained in:
Joost VandeVondele 2020-08-12 17:21:12 +02:00
parent dd63b98fb0
commit 69cfe28f31
2 changed files with 7 additions and 3 deletions

View file

@ -468,7 +468,7 @@ ifeq ($(neon),yes)
endif
ifeq ($(arch),x86_64)
CXXFLAGS += -DUSE_SSE2
CXXFLAGS += -msse2 -DUSE_SSE2
endif
### 3.7 pext

View file

@ -225,6 +225,7 @@ const std::string compiler_info() {
#if defined(USE_AVX512)
compiler += " AVX512";
#endif
compiler += (HasPext ? " BMI2" : "");
#if defined(USE_AVX2)
compiler += " AVX2";
#endif
@ -234,11 +235,14 @@ const std::string compiler_info() {
#if defined(USE_SSSE3)
compiler += " SSSE3";
#endif
compiler += (HasPext ? " BMI2" : "");
compiler += (HasPopCnt ? " POPCNT" : "");
#if defined(USE_SSE2)
compiler += " SSE2";
#endif
compiler += (HasPopCnt ? " POPCNT" : "");
#if defined(USE_MMX)
compiler += " MMX";
#endif
#if !defined(NDEBUG)
compiler += " DEBUG";
#endif