]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: wait for run jobs to finish in case of a compiler error
authorAgniva De Sarker <agnivade@yahoo.co.in>
Fri, 3 Aug 2018 15:21:25 +0000 (20:51 +0530)
committerIan Lance Taylor <iant@golang.org>
Thu, 30 Aug 2018 21:11:54 +0000 (21:11 +0000)
commit04bee230145759a8f7eadff29f16d7443b215114
tree6227d37bfd79ff1235f5bd6f1c99b66158b0ac28
parent6c0b8b5f8c74560007ae5929c7a2bfe3b9b875a8
cmd/dist: wait for run jobs to finish in case of a compiler error

Instead of calling run synchronously, we pass it through bgrun
and immediately wait for it to finish. This pushes all jobs
to execute through the bgwork channel and therefore causes
them to exit cleanly in case of a compiler error.

Fixes #25981

Change-Id: I789a85d23fabf32d144ab85a3c9f53546cb7765a
Reviewed-on: https://go-review.googlesource.com/127776
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/dist/build.go