Commit 78821616 authored by Robert Hencke's avatar Robert Hencke Committed by Rob Pike

gotest: use build.DefaultContext.GOARCH

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

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5485051
parent 22dafc9b
......@@ -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)
......
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