1
0
mirror of https://github.com/golang/go synced 2024-11-23 16:50:06 -07:00

cmd/dist: fix compilation on windows

Add missing extensions to binary files in order to allow execution.

Change-Id: Idfe4c72c80c26b7b938023bc7bbe1ef85e1aa7b0
This commit is contained in:
Florin Pățan 2018-07-19 14:53:24 +03:00
parent d278f09333
commit ed9d812427
2 changed files with 3 additions and 3 deletions

View File

@ -79,7 +79,7 @@ set GOBIN=
"%GOROOT_BOOTSTRAP%\bin\go" build -o cmd\dist\dist.exe .\cmd\dist "%GOROOT_BOOTSTRAP%\bin\go" build -o cmd\dist\dist.exe .\cmd\dist
endlocal endlocal
if errorlevel 1 goto fail if errorlevel 1 goto fail
.\cmd\dist\dist 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
@ -103,7 +103,7 @@ if x%4==x--no-banner set buildall=%buildall% --no-banner
:: Run dist bootstrap to complete make.bash. :: Run dist bootstrap to complete make.bash.
:: Bootstrap installs a proper cmd/dist, built with the new toolchain. :: Bootstrap installs a proper cmd/dist, built with the new toolchain.
:: Throw ours, built with Go 1.4, away after bootstrap. :: Throw ours, built with Go 1.4, away after bootstrap.
.\cmd\dist\dist bootstrap %vflag% %buildall% .\cmd\dist\dist.exe bootstrap %vflag% %buildall%
if errorlevel 1 goto fail if errorlevel 1 goto fail
del .\cmd\dist\dist.exe del .\cmd\dist\dist.exe
goto end goto end

View File

@ -18,7 +18,7 @@ goto end
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 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