1
0
mirror of https://github.com/golang/go synced 2024-11-21 21:24:45 -07:00

builder: set $GOBUILDEXIT for Windows

Actually %GOBUILDEXIT% I suppose.

R=golang-dev
CC=golang-dev
https://golang.org/cl/5651058
This commit is contained in:
Russ Cox 2012-02-10 01:27:59 -05:00
parent ce63ec93ce
commit 0bc6836e81
2 changed files with 2 additions and 1 deletions

View File

@ -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)

View File

@ -16,4 +16,4 @@ if %GOBUILDFAIL%==1 goto end
..\bin\tool\dist banner
:end
exit %GOBUILDFAIL%
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%