diff options
Diffstat (limited to 'remoteexec/remoteexec.go')
-rw-r--r-- | remoteexec/remoteexec.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/remoteexec/remoteexec.go b/remoteexec/remoteexec.go index d6e2c0a75..5f0426a7f 100644 --- a/remoteexec/remoteexec.go +++ b/remoteexec/remoteexec.go @@ -81,6 +81,9 @@ type REParams struct { // ToolchainInputs is a list of paths or ninja variables pointing to the location of // toolchain binaries used by the rule. ToolchainInputs []string + // EnvironmentVariables is a list of environment variables whose values should be passed through + // to the remote execution. + EnvironmentVariables []string } func init() { @@ -162,6 +165,10 @@ func (r *REParams) wrapperArgs() string { args += " --toolchain_inputs=" + strings.Join(r.ToolchainInputs, ",") } + if len(r.EnvironmentVariables) > 0 { + args += " --env_var_allowlist=" + strings.Join(r.EnvironmentVariables, ",") + } + return args + " -- " } |