aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
authorJeff Gaston <jeffrygaston@google.com>2017-03-29 17:29:06 -0700
committerJeff Gaston <jeffrygaston@google.com>2017-06-09 17:57:18 +0000
commitefc1b412f199bbbe2474d4c5396dc4b39a6beff7 (patch)
treec324ef0de2b4a59c76b5c78637852f567be0038b /android
parent6b78fa8c012d3e84684d458f3271e91f0312423f (diff)
downloadbuild_soong-efc1b412f199bbbe2474d4c5396dc4b39a6beff7.tar.gz
build_soong-efc1b412f199bbbe2474d4c5396dc4b39a6beff7.tar.bz2
build_soong-efc1b412f199bbbe2474d4c5396dc4b39a6beff7.zip
Have Soong try to enforce that genrules declare all their outputs.
This causes Soong to put the outputs of each genrule into a temporary location and copy the declared outputs back to the output directory. This gets the process closer to having an actual sandbox. Bug: 35562758 Test: make Change-Id: I8048fbf1a3899a86fb99d71b60669b6633b07b3e
Diffstat (limited to 'android')
-rw-r--r--android/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go
index 869a5c43..c3beb08e 100644
--- a/android/config.go
+++ b/android/config.go
@@ -52,6 +52,10 @@ type Config struct {
*config
}
+func (c Config) BuildDir() string {
+ return c.buildDir
+}
+
// A DeviceConfig object represents the configuration for a particular device being built. For
// now there will only be one of these, but in the future there may be multiple devices being
// built