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

gotest: use build.DefaultContext.GOARCH

Fixes https://golang.org/cl/5480060/#msg4

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5485051
This commit is contained in:
Robert Hencke 2011-12-14 11:21:30 -08:00 committed by Rob Pike
parent 22dafc9bc5
commit 78821616d6

View File

@ -131,10 +131,7 @@ func setEnvironment() {
// Basic environment.
GOROOT = runtime.GOROOT()
addEnv("GOROOT", GOROOT)
GOARCH = os.Getenv("GOARCH")
if GOARCH == "" {
GOARCH = runtime.GOARCH
}
GOARCH = build.DefaultContext.GOARCH
addEnv("GOARCH", GOARCH)
var err error
O, err = build.ArchChar(GOARCH)