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

builder: pass GOHOSTOS and GOHOSTARCH to build

R=rsc
CC=golang-dev
https://golang.org/cl/2759041
This commit is contained in:
Andrew Gerrand 2010-10-27 11:27:52 +11:00
parent f437d4d356
commit fe57dd8522

View File

@ -265,6 +265,8 @@ func (b *Builder) buildCommit(c Commit) (err os.Error) {
env := []string{
"GOOS=" + b.goos,
"GOARCH=" + b.goarch,
"GOHOSTOS=" + os.Getenv("GOHOSTOS"),
"GOHOSTARCH=" + os.Getenv("GOHOSTARCH"),
"GOROOT_FINAL=/usr/local/go",
"PATH=" + os.Getenv("PATH"),
}