aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2017-07-24 15:58:20 -0700
committerDan Willemsen <dwillemsen@google.com>2017-07-24 15:58:20 -0700
commit05f17764c39531bcbf2992ff12cb1cf36a609eab (patch)
tree7c35102eab663537d96aedb26925feee571468f0 /ui
parent91f9b547672ecb20a308d52df3a0c09d616cb1b9 (diff)
downloadbuild_soong-05f17764c39531bcbf2992ff12cb1cf36a609eab.tar.gz
build_soong-05f17764c39531bcbf2992ff12cb1cf36a609eab.tar.bz2
build_soong-05f17764c39531bcbf2992ff12cb1cf36a609eab.zip
Use a unified ninja builddir
Instead of calling SetNinjaBuildDir, pass it to bootstrap.bash, so that the bootstrap package can set it consistently during bootstrapping and normal execution. Bug: 63720725 Test: m -j nothing Test: mkdir o; ../bootstrap.bash; ./soong Change-Id: Ica88d2d5f1461b5be49bfe6316c6ec4ef4d89d49
Diffstat (limited to 'ui')
-rw-r--r--ui/build/soong.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/build/soong.go b/ui/build/soong.go
index ddfe666c..d242805e 100644
--- a/ui/build/soong.go
+++ b/ui/build/soong.go
@@ -24,6 +24,7 @@ func runSoongBootstrap(ctx Context, config Config) {
cmd := Command(ctx, config, "soong bootstrap", "./bootstrap.bash")
cmd.Environment.Set("BUILDDIR", config.SoongOutDir())
+ cmd.Environment.Set("NINJA_BUILDDIR", config.OutDir())
cmd.Sandbox = soongSandbox
cmd.Stdout = ctx.Stdout()
cmd.Stderr = ctx.Stderr()