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 | |
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
-rw-r--r-- | cc/cc.go | 4 | ||||
-rw-r--r-- | cc/clang.go | 1 | ||||
-rw-r--r-- | common/config.go | 2 | ||||
-rwxr-xr-x | soong.bash | 2 |
4 files changed, 5 insertions, 4 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", diff --git a/common/config.go b/common/config.go index 6fd6dfce..ef59cf72 100644 --- a/common/config.go +++ b/common/config.go @@ -261,7 +261,7 @@ func (c *config) DeviceUsesClang() bool { if c.ProductVariables.DeviceUsesClang != nil { return *c.ProductVariables.DeviceUsesClang } - return false + return true } func (c *config) ResourceOverlays() []SourcePath { @@ -40,4 +40,4 @@ if [ -f "${ENVFILE}" ]; then fi fi -"prebuilts/ninja/${PREBUILTOS}/ninja" -f "${BUILDDIR}/build.ninja" "$@" +"prebuilts/ninja/${PREBUILTOS}/ninja" -f "${BUILDDIR}/build.ninja" -w dupbuild=err "$@" |