Merge "Fix quoting issues when generating build.ninja ."
This commit is contained in:
commit
51868f1577
1 changed files with 17 additions and 1 deletions
|
@ -128,7 +128,23 @@ var (
|
|||
// TODO: it's kinda ugly that some parameters are computed from
|
||||
// environment variables and some from Ninja parameters, but it's probably
|
||||
// better to not to touch that while Blueprint and Soong are separate
|
||||
Command: "cd $$(dirname $builder) && BUILDER=$$PWD/$$(basename $builder) && cd / && env -i $$BUILDER $extra --top \"$$TOP\" --out \"$$SOONG_OUTDIR\" --delve_listen \"$$SOONG_DELVE\" --delve_path \"$$SOONG_DELVE_PATH\" -b $buildDir -n $ninjaBuildDir -d $out.d -globFile $globFile -o $out $in",
|
||||
// NOTE: The spaces at EOL are important because otherwise Ninja would
|
||||
// omit all spaces between the different options.
|
||||
Command: `cd "$$(dirname "$builder")" && ` +
|
||||
`BUILDER="$$PWD/$$(basename "$builder")" && ` +
|
||||
`cd / && ` +
|
||||
`env -i "$$BUILDER" ` +
|
||||
` $extra ` +
|
||||
` --top "$$TOP" ` +
|
||||
` --out "$$SOONG_OUTDIR" ` +
|
||||
` --delve_listen "$$SOONG_DELVE" ` +
|
||||
` --delve_path "$$SOONG_DELVE_PATH" ` +
|
||||
` -b "$buildDir" ` +
|
||||
` -n "$ninjaBuildDir" ` +
|
||||
` -d "$out.d" ` +
|
||||
` -globFile "$globFile" ` +
|
||||
` -o "$out" ` +
|
||||
` "$in" `,
|
||||
CommandDeps: []string{"$builder"},
|
||||
Description: "$builder $out",
|
||||
Deps: blueprint.DepsGCC,
|
||||
|
|
Loading…
Reference in a new issue