diff options
author | 2020-01-11 01:11:46 +0000 | |
---|---|---|
committer | 2020-01-11 01:11:46 +0000 | |
commit | 988414c2cf6bfb868df7d402e0bf825d6fd44cc8 (patch) | |
tree | 79912c740318a967a9091285a5be7aece8fdcf6c /android/singleton.go | |
parent | 47e4f9e1e8d46bb72958145edc830c625fbb5f8a (diff) |
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/singleton.go')
-rw-r--r-- | android/singleton.go | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/android/singleton.go b/android/singleton.go index 5519ca019..91268ad1c 100644 --- a/android/singleton.go +++ b/android/singleton.go @@ -16,7 +16,6 @@ package android import ( "github.com/google/blueprint" - "github.com/google/blueprint/pathtools" ) // SingletonContext @@ -74,8 +73,6 @@ type SingletonContext interface { // builder whenever a file matching the pattern as added or removed, without rerunning if a // file that does not match the pattern is added to a searched directory. GlobWithDeps(pattern string, excludes []string) ([]string, error) - - Fs() pathtools.FileSystem } type singletonAdaptor struct { |