cd / before generating build.ninja . am: f802ffcd12
am: e4b39574a3
Original change: https://android-review.googlesource.com/c/platform/build/blueprint/+/1592052 MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I5bf49d69fe2dc2ac9f80a58d5b223d9e421c8c0c
This commit is contained in:
commit
5278a2b5bb
1 changed files with 4 additions and 2 deletions
|
@ -125,7 +125,10 @@ var (
|
|||
|
||||
generateBuildNinja = pctx.StaticRule("build.ninja",
|
||||
blueprint.RuleParams{
|
||||
Command: "$builder $extra -b $buildDir -n $ninjaBuildDir -d $out.d -globFile $globFile -o $out $in",
|
||||
// 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\" -b $buildDir -n $ninjaBuildDir -d $out.d -globFile $globFile -o $out $in",
|
||||
CommandDeps: []string{"$builder"},
|
||||
Description: "$builder $out",
|
||||
Deps: blueprint.DepsGCC,
|
||||
|
@ -730,7 +733,6 @@ func (s *singleton) GenerateBuildActions(ctx blueprint.SingletonContext) {
|
|||
// Get the filename of the top-level Blueprints file to pass to minibp.
|
||||
topLevelBlueprints := filepath.Join("$srcDir",
|
||||
filepath.Base(s.config.topLevelBlueprintsFile))
|
||||
|
||||
ctx.SetNinjaBuildDir(pctx, "${ninjaBuildDir}")
|
||||
|
||||
if s.config.stage == StagePrimary {
|
||||
|
|
Loading…
Reference in a new issue