]> Cypherpunks repositories - gostls13.git/commitdiff
builder: pass GOHOSTOS and GOHOSTARCH to build
authorAndrew Gerrand <adg@golang.org>
Wed, 27 Oct 2010 00:27:52 +0000 (11:27 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 27 Oct 2010 00:27:52 +0000 (11:27 +1100)
R=rsc
CC=golang-dev
https://golang.org/cl/2759041

misc/dashboard/builder/main.go

index a27abe06d9f621d92b8ed8f54c358793347e6264..2b8b855dd7a52cdcd29d5d4e97bfe604da956c45 100644 (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"),
        }