core/minute-ia: Disable flag when using clang
"-mno-accumulate-outgoing-args" is not a flag that clang understands.
BRANCH=ish
TEST=none
@@ -14,11 +14,14 @@ $(call set-option,CROSS_COMPILE,$(CROSS_COMPILE_i386),\
CFLAGS_FPU-$(CONFIG_FPU)=
# CPU specific compilation flags
-CFLAGS_CPU+=-O2 -fomit-frame-pointer -mno-accumulate-outgoing-args \
+CFLAGS_CPU+=-O2 -fomit-frame-pointer \
-ffunction-sections -fdata-sections \
-fno-builtin-printf -fno-builtin-sprintf \
-fno-stack-protector -gdwarf-2 -fno-common -ffreestanding \
-minline-all-stringops -fno-strict-aliasing
+ifneq ($(cc-name),clang)
+CFLAGS_CPU+=-mno-accumulate-outgoing-args
+endif
CFLAGS_CPU+=$(CFLAGS_FPU-y)
