Skip to content

Commit 69cfe28

Browse files
committed
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 #2990 No functional change.
1 parent dd63b98 commit 69cfe28

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ ifeq ($(neon),yes)
468468
endif
469469

470470
ifeq ($(arch),x86_64)
471-
CXXFLAGS += -DUSE_SSE2
471+
CXXFLAGS += -msse2 -DUSE_SSE2
472472
endif
473473

474474
### 3.7 pext

src/misc.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ const std::string compiler_info() {
225225
#if defined(USE_AVX512)
226226
compiler += " AVX512";
227227
#endif
228+
compiler += (HasPext ? " BMI2" : "");
228229
#if defined(USE_AVX2)
229230
compiler += " AVX2";
230231
#endif
@@ -234,11 +235,14 @@ const std::string compiler_info() {
234235
#if defined(USE_SSSE3)
235236
compiler += " SSSE3";
236237
#endif
237-
compiler += (HasPext ? " BMI2" : "");
238-
compiler += (HasPopCnt ? " POPCNT" : "");
238+
#if defined(USE_SSE2)
239+
compiler += " SSE2";
240+
#endif
241+
compiler += (HasPopCnt ? " POPCNT" : "");
239242
#if defined(USE_MMX)
240243
compiler += " MMX";
241244
#endif
245+
242246
#if !defined(NDEBUG)
243247
compiler += " DEBUG";
244248
#endif

0 commit comments

Comments
 (0)