diff options
author | Colin Cross <ccross@android.com> | 2020-01-11 01:11:46 +0000 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2020-01-11 01:11:46 +0000 |
commit | 988414c2cf6bfb868df7d402e0bf825d6fd44cc8 (patch) | |
tree | 79912c740318a967a9091285a5be7aece8fdcf6c /android/package_ctx.go | |
parent | 47e4f9e1e8d46bb72958145edc830c625fbb5f8a (diff) | |
download | build_soong-988414c2cf6bfb868df7d402e0bf825d6fd44cc8.tar.gz build_soong-988414c2cf6bfb868df7d402e0bf825d6fd44cc8.tar.bz2 build_soong-988414c2cf6bfb868df7d402e0bf825d6fd44cc8.zip |
Sandbox soong_build by changing to root directory
This relands I12a0f907753fefd1997ab8b4ea2ac331234093cf along with
a fix to blueprint for absolute paths.
Store the current working directory and then change to the root
directory so that all file accesses must go through helpers in
the android package that properly track dependencies.
Change-Id: I24ac485677aa102eec1a2521d16820da6ee1ae77
Fixes: 146437378
Test: m checkbuild
Test: m OUT_DIR=/tmp/out nothing
Diffstat (limited to 'android/package_ctx.go')
-rw-r--r-- | android/package_ctx.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/android/package_ctx.go b/android/package_ctx.go index d3527fa2..a2289108 100644 --- a/android/package_ctx.go +++ b/android/package_ctx.go @@ -19,7 +19,6 @@ import ( "strings" "github.com/google/blueprint" - "github.com/google/blueprint/pathtools" ) // PackageContext is a wrapper for blueprint.PackageContext that adds @@ -60,10 +59,6 @@ func (e *configErrorWrapper) AddNinjaFileDeps(deps ...string) { e.pctx.AddNinjaFileDeps(deps...) } -func (e *configErrorWrapper) Fs() pathtools.FileSystem { - return nil -} - type PackageVarContext interface { PathContext errorfContext |