summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toolchain.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/toolchain.inc b/toolchain.inc
index 5501c32e63..d9b11f0c63 100644
--- a/toolchain.inc
+++ b/toolchain.inc
@@ -79,11 +79,13 @@ CFLAGS_power8 +=
# for an example).
# (If you absolutely need a larger stack frame and are 100% sure it cannot
# cause problems, you can whitelist it with #pragma diagnostic.)
+ifeq ($(CONFIG_COMPILER_GCC),y)
CFLAGS_arm += -Wstack-usage=1536
CFLAGS_arm64 += -Wstack-usage=1536
CFLAGS_mips += -Wstack-usage=1536
CFLAGS_riscv += -Wstack-usage=1536
CFLAGS_power8 += -Wstack-usage=1536
+endif
toolchain_to_dir = \
$(foreach arch,$(ARCH_SUPPORTED),\