From 9db51f790a53a0f9af295ca284bc76ce648537ec Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 17 Nov 2024 23:19:58 +0100 Subject: [PATCH] Remove any optimization flags from DEBUG builds on POWER architecture --- Makefile.system | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Makefile.system b/Makefile.system index 21a0fc3caa..29ea819f13 100644 --- a/Makefile.system +++ b/Makefile.system @@ -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