Skip to content

Commit ed9d812

Browse files
committed
cmd/dist: fix compilation on windows
Add missing extensions to binary files in order to allow execution. Change-Id: Idfe4c72c80c26b7b938023bc7bbe1ef85e1aa7b0
1 parent d278f09 commit ed9d812

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/make.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ set GOBIN=
7979
"%GOROOT_BOOTSTRAP%\bin\go" build -o cmd\dist\dist.exe .\cmd\dist
8080
endlocal
8181
if errorlevel 1 goto fail
82-
.\cmd\dist\dist env -w -p >env.bat
82+
.\cmd\dist\dist.exe env -w -p >env.bat
8383
if errorlevel 1 goto fail
8484
call env.bat
8585
del env.bat
@@ -103,7 +103,7 @@ if x%4==x--no-banner set buildall=%buildall% --no-banner
103103
:: Run dist bootstrap to complete make.bash.
104104
:: Bootstrap installs a proper cmd/dist, built with the new toolchain.
105105
:: Throw ours, built with Go 1.4, away after bootstrap.
106-
.\cmd\dist\dist bootstrap %vflag% %buildall%
106+
.\cmd\dist\dist.exe bootstrap %vflag% %buildall%
107107
if errorlevel 1 goto fail
108108
del .\cmd\dist\dist.exe
109109
goto end

src/race.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ goto end
1818
set GOROOT=%CD%\..
1919
call make.bat --dist-tool >NUL
2020
if errorlevel 1 goto fail
21-
.\cmd\dist\dist env -w -p >env.bat
21+
.\cmd\dist\dist.exe env -w -p >env.bat
2222
if errorlevel 1 goto fail
2323
call env.bat
2424
del env.bat

0 commit comments

Comments
 (0)