]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: fix variable name
authorElias Naur <mail@eliasnaur.com>
Wed, 27 Feb 2019 17:53:14 +0000 (18:53 +0100)
committerElias Naur <mail@eliasnaur.com>
Wed, 27 Feb 2019 18:04:36 +0000 (18:04 +0000)
Noticed by Bryan after CL 163618 went in.

Change-Id: Ia33c80dca60321f6a8329097ff55118e5d2634ab
Reviewed-on: https://go-review.googlesource.com/c/164042
Run-TryBot: Elias Naur <mail@eliasnaur.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/dist/build.go

index 43e1fe66f3b73f75292444faf602ca27706928b5..03f0f03657af2c97ba80e6e13eb7eee1c0bfdbfc 100644 (file)
@@ -1405,17 +1405,17 @@ func goInstall(goBinary string, args ...string) {
 }
 
 func goCmd(goBinary string, cmd string, args ...string) {
-       installCmd := []string{goBinary, cmd, "-gcflags=all=" + gogcflags, "-ldflags=all=" + goldflags}
+       goCmd := []string{goBinary, cmd, "-gcflags=all=" + gogcflags, "-ldflags=all=" + goldflags}
        if vflag > 0 {
-               installCmd = append(installCmd, "-v")
+               goCmd = append(goCmd, "-v")
        }
 
        // Force only one process at a time on vx32 emulation.
        if gohostos == "plan9" && os.Getenv("sysname") == "vx32" {
-               installCmd = append(installCmd, "-p=1")
+               goCmd = append(goCmd, "-p=1")
        }
 
-       run(goroot, ShowOutput|CheckExit, append(installCmd, args...)...)
+       run(goroot, ShowOutput|CheckExit, append(goCmd, args...)...)
 }
 
 func checkNotStale(goBinary string, targets ...string) {