diff options
author | Tom Hughes <tomhughes@chromium.org> | 2019-01-24 12:04:04 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-25 21:01:19 -0800 |
commit | 7964abf0165b73e80047a558ef7e2981ec265cc2 (patch) | |
tree | ffda22f54bf28026c0458cc00bfc96f5cd003ae3 | |
parent | 6cb4a8b32a862eb715e84d80c9a293be6b2c624b (diff) | |
download | chrome-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>
-rw-r--r-- | Makefile.toolchain | 3 |
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 |