From 7bb2a7d63b0767f9c6fa0382ed9185ba21757095 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 4 Nov 2015 18:12:30 -0800 Subject: [PATCH] cmd/dist: remove vestigial -s flag Fixes #12002. Change-Id: I7262f4520560ac158fc2ee3ce1d2f7a488d40354 Reviewed-on: https://go-review.googlesource.com/16666 Run-TryBot: Matthew Dempsky Reviewed-by: Minux Ma TryBot-Result: Gobot Gobot Reviewed-by: Dave Cheney --- src/cmd/dist/build.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/cmd/dist/build.go b/src/cmd/dist/build.go index bbf7968b55..bcf6e71d52 100644 --- a/src/cmd/dist/build.go +++ b/src/cmd/dist/build.go @@ -44,8 +44,7 @@ var ( rebuildall bool defaultclang bool - sflag bool // build static binaries - vflag int // verbosity + vflag int // verbosity ) // The known architectures. @@ -980,7 +979,6 @@ func cmdenv() { // stopping at having installed the go_bootstrap command. func cmdbootstrap() { flag.BoolVar(&rebuildall, "a", rebuildall, "rebuild all") - flag.BoolVar(&sflag, "s", sflag, "build static binaries") xflagparse(0) if isdir(pathf("%s/src/pkg", goroot)) { @@ -1128,7 +1126,6 @@ func defaulttarg() string { // Install installs the list of packages named on the command line. func cmdinstall() { - flag.BoolVar(&sflag, "s", sflag, "build static binaries") xflagparse(-1) if flag.NArg() == 0 { -- 2.48.1