Skip to content

Commit 082c86a

Browse files
authored
Merge pull request #2884 from martin-frbg/sse_fixup
Add workaround for unwanted default activation of -msse3 in DYNAMIC_ARCH builds
2 parents 8892865 + 7a53128 commit 082c86a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Makefile.x86_64

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ endif
99
endif
1010

1111
ifdef HAVE_SSE3
12+
ifndef DYNAMIC_ARCH
1213
CCOMMON_OPT += -msse3
1314
FCOMMON_OPT += -msse3
1415
endif
16+
endif
1517

1618
ifeq ($(CORE), SKYLAKEX)
1719
ifndef DYNAMIC_ARCH

kernel/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ ifdef NO_AVX2
4141
endif
4242

4343
ifdef TARGET_CORE
44+
ifeq ($(TARGET_CORE), $(filter $(TARGET_CORE),PRESCOTT CORE2 PENRYN DUNNINGTON ATOM NANO NEHALEM BARCELONA BOBCAT BULLDOZER PILEDRIVER EXCAVATOR STEAMROLLER OPTERON_SSE3))
45+
override CFLAGS += -msse3
46+
endif
4447
ifeq ($(TARGET_CORE), COOPERLAKE)
4548
override CFLAGS += -DBUILD_KERNEL -DTABLE_NAME=gotoblas_$(TARGET_CORE)
4649
ifeq ($(GCCVERSIONGTEQ10), 1)

0 commit comments

Comments
 (0)