Ninja escape RuleBuilder rule params
The CommandDeps and Rspfile properties can contain arbitrary paths that may need ninja escaping. Bug: 182612695 Test: genrule_test.go Change-Id: I1426e9dfeab3bde9f65b61d0c47840f97c1c7526
This commit is contained in:
@@ -586,9 +586,9 @@ func (r *RuleBuilder) Build(name string, desc string) {
|
||||
r.ctx.Build(r.pctx, BuildParams{
|
||||
Rule: r.ctx.Rule(pctx, name, blueprint.RuleParams{
|
||||
Command: commandString,
|
||||
CommandDeps: tools.Strings(),
|
||||
CommandDeps: proptools.NinjaEscapeList(tools.Strings()),
|
||||
Restat: r.restat,
|
||||
Rspfile: rspFile,
|
||||
Rspfile: proptools.NinjaEscape(rspFile),
|
||||
RspfileContent: rspFileContent,
|
||||
Pool: pool,
|
||||
}),
|
||||
|
Reference in New Issue
Block a user