summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author John Eckerdal <john.eckerdal@sony.com> 2020-02-04 15:59:37 +0100
committer John Eckerdal <john.eckerdal@sony.com> 2020-02-18 12:28:53 +0100
commit974b0e80c7dba45c08390e28b9dbf2b60f71ec4e (patch)
treeb6241d446cff16261feb60e28d272ba11667485d
parent7c9662a8e992c47668f48fd1ad0f62463a007391 (diff)
Add CCACHE_DIR to allowed environment variables
Trying to override the default directory for ccache by using the CCACHE_DIR environment variable fails unless it is in the allowed list. Bug: 149670916 Test: manual Change-Id: I8e7eea7a5c25d7ea5f0956fafc70d62522f3c4fc
-rw-r--r--ui/build/ninja.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/build/ninja.go b/ui/build/ninja.go
index 22ec1f171..0749fe3af 100644
--- a/ui/build/ninja.go
+++ b/ui/build/ninja.go
@@ -142,6 +142,7 @@ func runNinja(ctx Context, config Config) {
"CCACHE_SLOPPINESS",
"CCACHE_BASEDIR",
"CCACHE_CPP2",
+ "CCACHE_DIR",
}, config.BuildBrokenNinjaUsesEnvVars()...)...)
}