mirror of
https://github.com/golang/go
synced 2024-11-23 00:30:07 -07:00
all.bat,clean.bat,race.bat,run.bat: call some.bat with .\some.bat
When set NoDefaultCurrentDirectoryInExePath=1, call some.bat does not work. Change-Id: Ifeab27ecf0d7ba1d504b755a22f73a0f13abbbb3 Reviewed-on: https://go-review.googlesource.com/c/go/+/405874 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
This commit is contained in:
parent
917f201f95
commit
c4c9c80e4f
@ -13,9 +13,9 @@ goto end
|
|||||||
:ok
|
:ok
|
||||||
|
|
||||||
set OLDPATH=%PATH%
|
set OLDPATH=%PATH%
|
||||||
call make.bat --no-banner --no-local
|
call .\make.bat --no-banner --no-local
|
||||||
if %GOBUILDFAIL%==1 goto end
|
if %GOBUILDFAIL%==1 goto end
|
||||||
call run.bat --no-rebuild --no-local
|
call .\run.bat --no-rebuild --no-local
|
||||||
if %GOBUILDFAIL%==1 goto end
|
if %GOBUILDFAIL%==1 goto end
|
||||||
:: we must restore %PATH% before running "dist banner" so that the latter
|
:: we must restore %PATH% before running "dist banner" so that the latter
|
||||||
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin
|
:: can get the original %PATH% and give suggestion to add %GOROOT%/bin
|
||||||
|
@ -10,7 +10,7 @@ set GOBUILDFAIL=0
|
|||||||
|
|
||||||
go tool dist env -w -p >env.bat
|
go tool dist env -w -p >env.bat
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
call env.bat
|
call .\env.bat
|
||||||
del env.bat
|
del env.bat
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
@ -16,11 +16,11 @@ goto end
|
|||||||
:ok
|
:ok
|
||||||
|
|
||||||
set GOROOT=%CD%\..
|
set GOROOT=%CD%\..
|
||||||
call make.bat --dist-tool >NUL
|
call .\make.bat --dist-tool >NUL
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
.\cmd\dist\dist.exe env -w -p >env.bat
|
.\cmd\dist\dist.exe env -w -p >env.bat
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
call env.bat
|
call .\env.bat
|
||||||
del env.bat
|
del env.bat
|
||||||
|
|
||||||
if %GOHOSTARCH% == amd64 goto continue
|
if %GOHOSTARCH% == amd64 goto continue
|
||||||
@ -28,7 +28,7 @@ echo Race detector is only supported on windows/amd64.
|
|||||||
goto fail
|
goto fail
|
||||||
|
|
||||||
:continue
|
:continue
|
||||||
call make.bat --no-banner --no-local
|
call .\make.bat --no-banner --no-local
|
||||||
if %GOBUILDFAIL%==1 goto end
|
if %GOBUILDFAIL%==1 goto end
|
||||||
echo # go install -race std
|
echo # go install -race std
|
||||||
go install -race std
|
go install -race std
|
||||||
|
@ -20,7 +20,7 @@ set GOBUILDFAIL=0
|
|||||||
|
|
||||||
..\bin\go tool dist env > env.bat
|
..\bin\go tool dist env > env.bat
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
call env.bat
|
call .\env.bat
|
||||||
del env.bat
|
del env.bat
|
||||||
|
|
||||||
set GOPATH=c:\nonexist-gopath
|
set GOPATH=c:\nonexist-gopath
|
||||||
|
Loading…
Reference in New Issue
Block a user