diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-03-02 03:06:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-03-02 03:06:41 +0000 |
commit | 4fef64b320863a176ba33ee2f28b221341922f27 (patch) | |
tree | ef007a2f8d8dba293b2e8b9bbc92b3d4c1a1b0c9 /cc | |
parent | f0c73e0f7141be5d5739f3970e8def0acb7803a2 (diff) | |
parent | 98f93c77e8b51e835306f6583f2e4459d67ba8fd (diff) | |
download | build_soong-4fef64b320863a176ba33ee2f28b221341922f27.tar.gz build_soong-4fef64b320863a176ba33ee2f28b221341922f27.tar.bz2 build_soong-4fef64b320863a176ba33ee2f28b221341922f27.zip |
Merge changes Ife723733,I68acfb53,Id216c35d,Id0569831,Iadac88f8, ...
* changes:
Add system/media/audio/include to commonGlobalIncludes
Add -Werror=date-time to target builds
DeviceUsesClang should default to true
clang now supports -fdebug-prefix-map=.
Turn on ninja errors for duplicate rules
Update to use the latest clang-2629532
Diffstat (limited to 'cc')
-rw-r--r-- | cc/cc.go | 4 | ||||
-rw-r--r-- | cc/clang.go | 1 |
2 files changed, 3 insertions, 2 deletions
@@ -94,6 +94,7 @@ var ( "-Werror=non-virtual-dtor", "-Werror=address", "-Werror=sequence-point", + "-Werror=date-time", } hostGlobalCflags = []string{} @@ -128,6 +129,7 @@ func init() { pctx.PrefixedPathsForOptionalSourceVariable("commonGlobalIncludes", "-isystem ", []string{ "system/core/include", + "system/media/audio/include", "hardware/libhardware/include", "hardware/libhardware_legacy/include", "hardware/ril/include", @@ -142,7 +144,7 @@ func init() { pctx.PrefixedPathsForOptionalSourceVariable("commonNativehelperInclude", "-I", []string{"libnativehelper/include/nativehelper"}) - pctx.SourcePathVariable("clangPath", "prebuilts/clang/host/${HostPrebuiltTag}/3.8/bin") + pctx.SourcePathVariable("clangPath", "prebuilts/clang/host/${HostPrebuiltTag}/clang-2629532/bin") } type CCModuleContext common.AndroidBaseContext diff --git a/cc/clang.go b/cc/clang.go index 5e0302a5..df7ec01c 100644 --- a/cc/clang.go +++ b/cc/clang.go @@ -31,7 +31,6 @@ var clangUnknownCflags = sorted([]string{ "-Wunused-but-set-parameter", "-Wunused-but-set-variable", "-fdiagnostics-color", - "-fdebug-prefix-map=/proc/self/cwd=", // arm + arm64 + mips + mips64 "-fgcse-after-reload", |