aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-12-18 15:11:17 -0800
committerDan Willemsen <dwillemsen@google.com>2015-12-18 15:55:52 -0800
commit7b310eefb74fc93f80c359d0b0486fc242100946 (patch)
tree83763ae3321eeeb7850ce3c4a4ffa50b3558d033 /cc
parent122d9f3e1dc4a6fccf9ba169c2a32b49a14568af (diff)
downloadbuild_soong-7b310eefb74fc93f80c359d0b0486fc242100946.tar.gz
build_soong-7b310eefb74fc93f80c359d0b0486fc242100946.tar.bz2
build_soong-7b310eefb74fc93f80c359d0b0486fc242100946.zip
Make global C include paths optional
Only add them to the global C include paths if they exist. And make sure to set up proper dependencies so that we notice when they are added or removed. Change-Id: Ia9df14f6ae6869927ad3d3a15fb5a8081f616a81
Diffstat (limited to 'cc')
-rw-r--r--cc/cc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 312e42b2..c532e50a 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -125,7 +125,7 @@ func init() {
// Everything in this list is a crime against abstraction and dependency tracking.
// Do not add anything to this list.
- pctx.PrefixedPathsForSourceVariable("commonGlobalIncludes", "-isystem ",
+ pctx.PrefixedPathsForOptionalSourceVariable("commonGlobalIncludes", "-isystem ",
[]string{
"system/core/include",
"hardware/libhardware/include",