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