aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-03-02 03:06:41 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-03-02 03:06:41 +0000
commit4fef64b320863a176ba33ee2f28b221341922f27 (patch)
treeef007a2f8d8dba293b2e8b9bbc92b3d4c1a1b0c9 /cc
parentf0c73e0f7141be5d5739f3970e8def0acb7803a2 (diff)
parent98f93c77e8b51e835306f6583f2e4459d67ba8fd (diff)
downloadbuild_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.go4
-rw-r--r--cc/clang.go1
2 files changed, 3 insertions, 2 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 6cff27f8..a5c14e1b 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -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",