From 0bc6836e81223a82653c44a4a6023e762a1e51cc Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Fri, 10 Feb 2012 01:27:59 -0500 Subject: [PATCH] builder: set $GOBUILDEXIT for Windows Actually %GOBUILDEXIT% I suppose. R=golang-dev CC=golang-dev https://golang.org/cl/5651058 --- misc/dashboard/builder/main.go | 1 + src/all.bat | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go index bce930d402..1ba8e579e5 100644 --- a/misc/dashboard/builder/main.go +++ b/misc/dashboard/builder/main.go @@ -478,6 +478,7 @@ func (b *Builder) envv() []string { "GOOS=" + b.goos, "GOARCH=" + b.goarch, "GOROOT_FINAL=/usr/local/go", + "GOBUILDEXIT=1", // On Windows, exit all.bat with completion status. } for _, k := range extraEnv { s, err := os.Getenverror(k) diff --git a/src/all.bat b/src/all.bat index feaf4e65df..4389a528d2 100644 --- a/src/all.bat +++ b/src/all.bat @@ -16,4 +16,4 @@ if %GOBUILDFAIL%==1 goto end ..\bin\tool\dist banner :end -exit %GOBUILDFAIL% +if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL% -- 2.50.0