summaryrefslogtreecommitdiff
path: root/src/make.bat
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.bat
parent84dc501d202194b7b166de8371161a6222025b01 (diff)
downloadgo-git-c1e026a5f6f24b4638740f0a602119d22c2c5fef.tar.gz
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.bat')
-rw-r--r--src/make.bat21
1 files changed, 17 insertions, 4 deletions
diff --git a/src/make.bat b/src/make.bat
index 101fc4bb1a..be164e8df1 100644
--- a/src/make.bat
+++ b/src/make.bat
@@ -41,6 +41,8 @@
:: unless invoked with --no-local.
if x%1==x--no-local goto nolocal
if x%2==x--no-local goto nolocal
+if x%3==x--no-local goto nolocal
+if x%4==x--no-local goto nolocal
setlocal
:nolocal
@@ -58,12 +60,17 @@ del /F ".\pkg\runtime\runtime_defs.go" 2>NUL
cd ..
set GOROOT=%CD%
cd src
+set vflag=
+if x%1==x-v set vflag=-v
+if x%2==x-v set vflag=-v
+if x%3==x-v set vflag=-v
+if x%4==x-v set vflag=-v
-echo ##### Building Go bootstrap tool.
-echo cmd/dist
if not exist ..\bin\tool mkdir ..\bin\tool
if "x%GOROOT_BOOTSTRAP%"=="x" set GOROOT_BOOTSTRAP=%HOMEDRIVE%%HOMEPATH%\Go1.4
if not exist "%GOROOT_BOOTSTRAP%\bin\go.exe" goto bootstrapfail
+echo Building Go cmd/dist using %GOROOT_BOOTSTRAP%
+if x%vflag==x-v echo cmd/dist
setlocal
set GOROOT=%GOROOT_BOOTSTRAP%
set GOOS=
@@ -76,21 +83,27 @@ if errorlevel 1 goto fail
if errorlevel 1 goto fail
call env.bat
del env.bat
-echo.
+if x%vflag==x-v echo.
if x%1==x--dist-tool goto copydist
if x%2==x--dist-tool goto copydist
+if x%3==x--dist-tool goto copydist
+if x%4==x--dist-tool goto copydist
set buildall=-a
if x%1==x--no-clean set buildall=
if x%2==x--no-clean set buildall=
+if x%3==x--no-clean set buildall=
+if x%4==x--no-clean set buildall=
if x%1==x--no-banner set buildall=%buildall% --no-banner
if x%2==x--no-banner set buildall=%buildall% --no-banner
+if x%3==x--no-banner set buildall=%buildall% --no-banner
+if x%4==x--no-banner set buildall=%buildall% --no-banner
:: 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 %buildall% -v
+.\cmd\dist\dist bootstrap %vflag% %buildall%
if errorlevel 1 goto fail
del .\cmd\dist\dist.exe
goto end