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:
parent
22dafc9bc5
commit
78821616d6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user