summaryrefslogtreecommitdiff
path: root/android/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/config.go')
-rw-r--r--android/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/config.go b/android/config.go
index 312a5da49..24b9b8a62 100644
--- a/android/config.go
+++ b/android/config.go
@@ -18,6 +18,7 @@ package android
// product variables necessary for soong_build's operation.
import (
+ "android/soong/shared"
"encoding/json"
"fmt"
"os"
@@ -118,6 +119,11 @@ func (c Config) SoongOutDir() string {
return c.soongOutDir
}
+// tempDir returns the path to out/soong/.temp, which is cleared at the beginning of every build.
+func (c Config) tempDir() string {
+ return shared.TempDirForOutDir(c.soongOutDir)
+}
+
func (c Config) OutDir() string {
return c.outDir
}