Commit c33a9511 authored by Elias Naur's avatar Elias Naur

cmd/dist: fix variable name

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarBryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 5f8ca7ee
...@@ -1405,17 +1405,17 @@ func goInstall(goBinary string, args ...string) { ...@@ -1405,17 +1405,17 @@ func goInstall(goBinary string, args ...string) {
} }
func goCmd(goBinary string, cmd 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 { if vflag > 0 {
installCmd = append(installCmd, "-v") goCmd = append(goCmd, "-v")
} }
// Force only one process at a time on vx32 emulation. // Force only one process at a time on vx32 emulation.
if gohostos == "plan9" && os.Getenv("sysname") == "vx32" { 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) { func checkNotStale(goBinary string, targets ...string) {
......
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