Commit 0bc6836e authored by Russ Cox's avatar Russ Cox

builder: set $GOBUILDEXIT for Windows

Actually %GOBUILDEXIT% I suppose.

R=golang-dev
CC=golang-dev
https://golang.org/cl/5651058
parent ce63ec93
......@@ -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)
......
......@@ -16,4 +16,4 @@ if %GOBUILDFAIL%==1 goto end
..\bin\tool\dist banner
:end
exit %GOBUILDFAIL%
if x%GOBUILDEXIT%==x1 exit %GOBUILDFAIL%
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment