summaryrefslogtreecommitdiff
path: root/remoteexec/remoteexec.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-03-24 14:09:28 -0700
committer Colin Cross <ccross@android.com> 2021-03-25 11:06:45 -0700
commita4eafddc41d81d066650618eae24792cb66064c9 (patch)
tree1ad820dac352ec0b35537990c8afc3be3662254c /remoteexec/remoteexec.go
parentfd708b5651be777b444406aaae02dff3c7a4a143 (diff)
Support multiple rsp files in REParams
rewrapper supports a comma separate list of rsp files, replace REParams.RSPFile with REParmas.RSPFiles. Test: remoteexec_test.go Change-Id: I7850c071c23d368d6fad4480dd527d146c13c6d3
Diffstat (limited to 'remoteexec/remoteexec.go')
-rw-r--r--remoteexec/remoteexec.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/remoteexec/remoteexec.go b/remoteexec/remoteexec.go
index 166f68c54..ef4672a73 100644
--- a/remoteexec/remoteexec.go
+++ b/remoteexec/remoteexec.go
@@ -64,9 +64,8 @@ type REParams struct {
ExecStrategy string
// Inputs is a list of input paths or ninja variables.
Inputs []string
- // RSPFile is the name of the ninja variable used by the rule as a placeholder for an rsp
- // input.
- RSPFile string
+ // RSPFiles is the name of the files used by the rule as a placeholder for an rsp input.
+ RSPFiles []string
// OutputFiles is a list of output file paths or ninja variables as placeholders for rule
// outputs.
OutputFiles []string
@@ -134,8 +133,8 @@ func (r *REParams) wrapperArgs() string {
args += " --inputs=" + strings.Join(r.Inputs, ",")
}
- if r.RSPFile != "" {
- args += " --input_list_paths=" + r.RSPFile
+ if len(r.RSPFiles) > 0 {
+ args += " --input_list_paths=" + strings.Join(r.RSPFiles, ",")
}
if len(r.OutputFiles) > 0 {