diff options
author | Stephen Hines <srhines@google.com> | 2014-11-26 00:57:34 -0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-12-03 15:11:09 -0800 |
commit | 433f1614b002df4f0fac1d916881a2d659893f19 (patch) | |
tree | 6670ff370d457008a82d354685399502388a67b2 /core/clang | |
parent | 1568029218b3da82a3bbd3fd6dce4385db5daf5b (diff) | |
download | build-433f1614b002df4f0fac1d916881a2d659893f19.zip build-433f1614b002df4f0fac1d916881a2d659893f19.tar.gz build-433f1614b002df4f0fac1d916881a2d659893f19.tar.bz2 |
Switch to Clang 3.6.
This change also defaults C compilations with clang to gnu99, and turns off
the -Winconsistent-missing-override flag, since we need further cleanup to
turn it on. -finline-functions is an unnecessary flag that only gcc needs.
Change-Id: I1cfcaedca32d9e3c248a6aa9460603205901c491
Diffstat (limited to 'core/clang')
-rw-r--r-- | core/clang/config.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/clang/config.mk b/core/clang/config.mk index d5b4e7a..05066c8 100644 --- a/core/clang/config.mk +++ b/core/clang/config.mk @@ -6,7 +6,7 @@ WITHOUT_TARGET_CLANG := true WITHOUT_HOST_CLANG := true endif -LLVM_PREBUILTS_VERSION := 3.5 +LLVM_PREBUILTS_VERSION := 3.6 LLVM_PREBUILTS_PATH := prebuilts/clang/$(BUILD_OS)-x86/host/$(LLVM_PREBUILTS_VERSION)/bin CLANG := $(LLVM_PREBUILTS_PATH)/clang$(BUILD_EXECUTABLE_SUFFIX) @@ -32,7 +32,7 @@ endif # Clang flags for all host or target rules CLANG_CONFIG_EXTRA_ASFLAGS := CLANG_CONFIG_EXTRA_CFLAGS := -CLANG_CONFIG_EXTRA_CONLYFLAGS := +CLANG_CONFIG_EXTRA_CONLYFLAGS := -std=gnu99 CLANG_CONFIG_EXTRA_CPPFLAGS := CLANG_CONFIG_EXTRA_LDFLAGS := @@ -48,7 +48,13 @@ CLANG_CONFIG_EXTRA_CFLAGS += \ CLANG_CONFIG_EXTRA_CFLAGS += \ -Wno-unused-command-line-argument +# Disable -Winconsistent-missing-override until we can clean up the existing +# codebase for it. +CLANG_CONFIG_EXTRA_CPPFLAGS += \ + -Wno-inconsistent-missing-override + CLANG_CONFIG_UNKNOWN_CFLAGS := \ + -finline-functions \ -finline-limit=64 \ -fno-canonical-system-headers \ -fno-tree-sra \ |