mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
ce63ec93ce
commit
0bc6836e81
2 changed files with 2 additions and 1 deletions
|
|
@ -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%
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue