Skip to content

Commit b28cdcc

Browse files
authored
Merge pull request #5915 from martin-frbg/fixup5802
Rework the -mpwr10 option to be only applied to POWER9/10 on FreeBSD
2 parents 036e835 + 87aac59 commit b28cdcc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile.power

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,12 @@ endif
111111
endif
112112

113113
ifeq ($(C_COMPILER), CLANG)
114-
CCOMMON_OPT += -fno-integrated-as -Wa,-mpwr10
114+
CCOMMON_OPT += -fno-integrated-as
115+
ifeq ($(OSNAME), FreeBSD)
116+
ifeq ($(CORE), $(filter $(CORE),POWER9 POWER10))
117+
CCOMMON_OPT += -Wa,-mpwr10
118+
endif
119+
endif
115120
endif
116121
# workaround for C->FORTRAN ABI violation in LAPACKE
117122
ifeq ($(F_COMPILER), GFORTRAN)

0 commit comments

Comments
 (0)