mirror of
https://github.com/golang/go
synced 2024-11-22 05:24:39 -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.
|
// 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user