summaryrefslogtreecommitdiff
path: root/android/singleton.go
diff options
context:
space:
mode:
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
commit988414c2cf6bfb868df7d402e0bf825d6fd44cc8 (patch)
tree79912c740318a967a9091285a5be7aece8fdcf6c /android/singleton.go
parent47e4f9e1e8d46bb72958145edc830c625fbb5f8a (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.go3
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 {