summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2019-01-24 12:04:04 -0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-25 21:01:19 -0800
commit7964abf0165b73e80047a558ef7e2981ec265cc2 (patch)
treeffda22f54bf28026c0458cc00bfc96f5cd003ae3 /Makefile.toolchain
parent6cb4a8b32a862eb715e84d80c9a293be6b2c624b (diff)
downloadchrome-ec-7964abf0165b73e80047a558ef7e2981ec265cc2.tar.gz
Makefile.toolchain: enable -fno-delete-null-pointer-checks for clang
clang now supports this flag as mentioned in the TODO BRANCH=none BUG=chromium:854924 TEST=make V=1 BOARD=nocturne_fp run-host_command_fuzz TEST=make buildall -j Change-Id: I6afc0be2f92c68d7ef6e25299554ef1fbaa903ae Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1435095 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Reviewed-by: Allen Webb <allenwebb@google.com>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index a7cf15fab3..f1b0f64491 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -94,9 +94,8 @@ CPPFLAGS+=-Ibuiltin/
endif
CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(COMMON_WARN) $(CFLAGS_y)
CFLAGS+= -ffunction-sections -fshort-wchar
-ifneq ($(cc-name),clang)
-# TODO(chromium:854924): LLVM support for this flag is coming soon.
CFLAGS+= -fno-delete-null-pointer-checks
+ifneq ($(cc-name),clang)
CFLAGS+= -fconserve-stack
endif
CFLAGS+= -DCHROMIUM_EC