summaryrefslogtreecommitdiff
path: root/common/env.go
diff options
context:
space:
mode:
Diffstat (limited to 'common/env.go')
-rw-r--r--common/env.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/env.go b/common/env.go
index 3214baa8f..8694c28aa 100644
--- a/common/env.go
+++ b/common/env.go
@@ -15,6 +15,8 @@
package common
import (
+ "path/filepath"
+
"android/soong"
"android/soong/env"
@@ -41,7 +43,7 @@ type envSingleton struct{}
func (c *envSingleton) GenerateBuildActions(ctx blueprint.SingletonContext) {
envDeps := ctx.Config().(Config).EnvDeps()
- envFile := ".soong.environment"
+ envFile := filepath.Join(ctx.Config().(Config).BuildDir(), ".soong.environment")
err := env.WriteEnvFile(envFile, envDeps)
if err != nil {