if errorlevel 1 goto fail
call env.bat
del env.bat
-:: Echo with no arguments prints whether echo is turned on, so echo dot.
-echo .
+echo.
echo # Building compilers and Go bootstrap tool.
set buildall=-a
:: Delay move of dist tool to now, because bootstrap cleared tool directory.
move .\cmd\dist\dist.exe %GOTOOLDIR%\dist.exe
%GOTOOLDIR%\go_bootstrap clean -i std
-echo .
+echo.
if not %GOHOSTARCH% == %GOARCH% goto localbuild
if not %GOHOSTOS% == %GOOS% goto localbuild
%GOTOOLDIR%\go_bootstrap install -v std
endlocal
if errorlevel 1 goto fail
-echo .
+echo.
:mainbuild
echo # Building packages and commands.
%GOTOOLDIR%\go_bootstrap install -a -v std
if errorlevel 1 goto fail
del %GOTOOLDIR%\go_bootstrap.exe
-echo .
+echo.
if x%1==x--no-banner goto nobanner
%GOTOOLDIR%\dist banner
echo # Building packages and commands.
go install -a -v std
if errorlevel 1 goto fail
-echo .
+echo.
:norebuild
echo # Testing packages.
go test std -short -timeout=120s
if errorlevel 1 goto fail
-echo .
+echo.
echo # runtime -cpu=1,2,4
go test runtime -short -timeout=120s -cpu=1,2,4
if errorlevel 1 goto fail
-echo .
+echo.
echo # sync -cpu=10
go test sync -short -timeout=120s -cpu=10
if errorlevel 1 goto fail
-echo .
+echo.
:: TODO: The other tests in run.bash, especially $GOROOT/test/run.