diff --git a/misc/dashboard/builder/main.go b/misc/dashboard/builder/main.go index bce930d4028..1ba8e579e50 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 feaf4e65dfd..4389a528d21 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%