aboutsummaryrefslogtreecommitdiff
path: root/cmd/soong_build
diff options
context:
space:
mode:
authorChris Parsons <cparsons@google.com>2020-11-09 20:08:36 -0500
committerChristopher Parsons <cparsons@google.com>2020-11-12 22:30:46 +0000
commit3060ec77312fcd76741dff321d852fb691db227b (patch)
tree1f77e66154060c2d9789ed56be1e15eff5f16587 /cmd/soong_build
parent45e0c95f859d6ae3743a9971be8b43b91c3bd68f (diff)
downloadsoong-3060ec77312fcd76741dff321d852fb691db227b.tar.gz
Stop first pass of mixed bazel builds before writing ninja
This shaves off ~20s, which is ~11%, of `m nothing` with mixed builds. Test: Manual verification with mixed builds of aosp_flame. Change-Id: Ief1bc56c92329e899c829fc1374eea9ee9b94fb7
Diffstat (limited to 'cmd/soong_build')
-rw-r--r--cmd/soong_build/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/soong_build/main.go b/cmd/soong_build/main.go
index 9d7dddd84..fe413f301 100644
--- a/cmd/soong_build/main.go
+++ b/cmd/soong_build/main.go
@@ -95,6 +95,7 @@ func main() {
// TODO(cparsons): Don't output any ninja file, as the second pass will overwrite
// the incorrect results from the first pass, and file I/O is expensive.
firstCtx := newContext(srcDir, configuration)
+ configuration.SetStopBefore(bootstrap.StopBeforeWriteNinja)
bootstrap.Main(firstCtx.Context, configuration, extraNinjaDeps...)
// Invoke bazel commands and save results for second pass.
if err := configuration.BazelContext.InvokeBazel(); err != nil {