summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
diff options
context:
space:
mode:
authorRong Chang <rongchang@chromium.org>2018-12-10 17:18:55 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-01-24 00:51:41 -0800
commit8d8e6eb819e6c883c10ae71fc4662af463d91a1b (patch)
tree59c2fa17b4dc72ea6812051658753f68cc718e16 /Makefile.toolchain
parentebb25bc556e399678189895b0371065e8c9507c0 (diff)
downloadchrome-ec-8d8e6eb819e6c883c10ae71fc4662af463d91a1b.tar.gz
build: add centroiding C++ support
Centroiding source is in C++. This CL removes -W flags only for building C files from CFLAGS and also prevents typedef existing C++ keyword wchar_t. BUG=b:120961468 BRANCH=none TEST=make buildall Change-Id: Ifb8793a8e7e69b26a742b7dbf70289747a0ee7b3 Signed-off-by: Rong Chang <rongchang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1372874 Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com> Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index ddf0901afc..a7cf15fab3 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -92,7 +92,7 @@ ifneq ($(BOARD),host)
CPPFLAGS+=-ffreestanding -fno-builtin -nostdinc -nostdlib
CPPFLAGS+=-Ibuiltin/
endif
-CFLAGS=$(CPPFLAGS) $(CFLAGS_CPU) $(CFLAGS_DEBUG) $(CFLAGS_WARN) $(CFLAGS_y)
+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.