Merge pull request #5915 from martin-frbg/fixup5802

Rework the -mpwr10 option to be only applied to POWER9/10 on FreeBSD
This commit is contained in:
Martin Kroeker
2026-07-14 22:05:19 +02:00
committed by GitHub
+6 -1
View File
@@ -111,7 +111,12 @@ endif
endif
ifeq ($(C_COMPILER), CLANG)
CCOMMON_OPT += -fno-integrated-as -Wa,-mpwr10
CCOMMON_OPT += -fno-integrated-as
ifeq ($(OSNAME), FreeBSD)
ifeq ($(CORE), $(filter $(CORE),POWER9 POWER10))
CCOMMON_OPT += -Wa,-mpwr10
endif
endif
endif
# workaround for C->FORTRAN ABI violation in LAPACKE
ifeq ($(F_COMPILER), GFORTRAN)