]> Cypherpunks repositories - gostls13.git/commitdiff
gotest: use build.DefaultContext.GOARCH
authorRobert Hencke <robert.hencke@gmail.com>
Wed, 14 Dec 2011 19:21:30 +0000 (11:21 -0800)
committerRob Pike <r@golang.org>
Wed, 14 Dec 2011 19:21:30 +0000 (11:21 -0800)
Fixes https://golang.org/cl/5480060/#msg4

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5485051

src/cmd/gotest/gotest.go

index 7b90bbd6ab0e5280092b0654965b2837eefc9822..1c6782889085b781a5c04ce2233118f178667fd0 100644 (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)