summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-09-28 22:50:45 +0000
committerCommit Bot <commit-bot@chromium.org>2021-10-27 21:28:05 +0000
commit072f84102c198c9c86af673e4171060311825f27 (patch)
tree1bb1417810b5a7f54851946b14cd65ce57cfa15b
parentf9aa6a4799c66479d0485a5954b9e1ffefc50a47 (diff)
downloadchrome-ec-072f84102c198c9c86af673e4171060311825f27.tar.gz
core/minute-ia: Disable flag when using clang
"-mno-accumulate-outgoing-args" is not a flag that clang understands. BRANCH=ish BUG=b:172020503 TEST=none Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I897a491d7b7c91d21d8cfa1cfb9d8470c1240650 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3193274 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
-rw-r--r--core/minute-ia/build.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/minute-ia/build.mk b/core/minute-ia/build.mk
index 099b9ea736..b51512c16e 100644
--- a/core/minute-ia/build.mk
+++ b/core/minute-ia/build.mk
@@ -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)