aboutsummaryrefslogtreecommitdiff
path: root/src/make.rc
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2017-10-28 09:00:35 -0400
committerRuss Cox <rsc@golang.org>2017-10-31 13:48:53 +0000
commitc1e026a5f6f24b4638740f0a602119d22c2c5fef (patch)
tree6d5408329f62516829ca0bd5c59f5b3164301f2b /src/make.rc
parent84dc501d202194b7b166de8371161a6222025b01 (diff)
downloadgo-c1e026a5f6f24b4638740f0a602119d22c2c5fef.tar.gz
go-c1e026a5f6f24b4638740f0a602119d22c2c5fef.zip
build: quiet make.bash, make.bat, make.rc
The signal-to-noise ratio is too low. Stop printing the name of every package. Can still get the old output with make.bash -v. Change-Id: Ib2c82e037166e6d2ddc31ae2a4d29af5becce574 Reviewed-on: https://go-review.googlesource.com/74351 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
Diffstat (limited to 'src/make.rc')
-rwxr-xr-xsrc/make.rc19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/make.rc b/src/make.rc
index 7704b12417..7ae6221b38 100755
--- a/src/make.rc
+++ b/src/make.rc
@@ -41,8 +41,13 @@ rm -f ./runtime/runtime_defs.go
# Determine the host compiler toolchain.
eval `{grep '^(CC|LD|O)=' /$objtype/mkfile}
-echo '##### Building Go bootstrap tool.'
-echo cmd/dist
+vflag=()
+if(~ $1 -v) {
+ vflag=(-v)
+ shift
+}
+
+
GOROOT = `{cd .. && pwd}
if(! ~ $#GOROOT_BOOTSTRAP 1)
GOROOT_BOOTSTRAP = $home/go1.4
@@ -66,11 +71,15 @@ if(~ $GOROOT_BOOTSTRAP $GOROOT){
echo 'Set $GOROOT_BOOTSTRAP to a working Go tree >= Go 1.4.' >[1=2]
exit bootstrap
}
-rm -f cmd/dist/dist
+
+echo 'Building Go cmd/dist using '^$GOROOT_BOOTSTRAP
+if(~ $#vflag 1)
+ echo cmd/dist
GOROOT=$GOROOT_BOOTSTRAP GOOS='' GOARCH='' $GOROOT_BOOTSTRAP/bin/go build -o cmd/dist/dist ./cmd/dist
eval `{./cmd/dist/dist env -9}
-echo
+if(~ $#vflag 1)
+ echo
if(~ $1 --dist-tool){
# Stop after building dist tool.
@@ -89,7 +98,7 @@ if(~ $1 --no-clean) {
# Run dist bootstrap to complete make.bash.
# Bootstrap installs a proper cmd/dist, built with the new toolchain.
# Throw ours, built with Go 1.4, away after bootstrap.
-./cmd/dist/dist bootstrap -v $buildall $*
+./cmd/dist/dist bootstrap $vflag $buildall $*
rm -f ./cmd/dist/dist
# DO NOT ADD ANY NEW CODE HERE.