Skip to content

Commit 9db51f7

Browse files
authored
Remove any optimization flags from DEBUG builds on POWER architecture
1 parent e334b79 commit 9db51f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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)