Skip to content

Commit

Permalink
Merge pull request OpenMathLib#4979 from martin-frbg/issue4978-2
Browse files Browse the repository at this point in the history
Remove any optimization flags from DEBUG builds on POWER architecture
  • Loading branch information
martin-frbg authored Nov 17, 2024
2 parents e334b79 + 9db51f7 commit 18014b0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile.system
Original file line number Diff line number Diff line change
Expand Up @@ -1615,6 +1615,13 @@ NO_AFFINITY = 1
endif
endif

ifeq ($(ARCH), POWER)
ifeq ($(DEBUG), 1)
CCOMMON_OPT := $(filter-out -O%, $(CCOMMON_OPT)) -O0
FCOMMON_OPT := $(filter-out -O%, $(FCOMMON_OPT)) -O0
endif
endif

ifdef NO_AFFINITY
ifeq ($(NO_AFFINITY), 0)
override undefine NO_AFFINITY
Expand Down

0 comments on commit 18014b0

Please sign in to comment.