Skip to content

Commit 18014b0

Browse files
authored
Merge pull request #4979 from martin-frbg/issue4978-2
Remove any optimization flags from DEBUG builds on POWER architecture
2 parents e334b79 + 9db51f7 commit 18014b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: Makefile.system

+7
Original file line numberDiff line numberDiff line change
@@ -1615,6 +1615,13 @@ NO_AFFINITY = 1
16151615
endif
16161616
endif
16171617

1618+
ifeq ($(ARCH), POWER)
1619+
ifeq ($(DEBUG), 1)
1620+
CCOMMON_OPT := $(filter-out -O%, $(CCOMMON_OPT)) -O0
1621+
FCOMMON_OPT := $(filter-out -O%, $(FCOMMON_OPT)) -O0
1622+
endif
1623+
endif
1624+
16181625
ifdef NO_AFFINITY
16191626
ifeq ($(NO_AFFINITY), 0)
16201627
override undefine NO_AFFINITY

0 commit comments

Comments
 (0)