Skip to content

Commit d145d92

Browse files
dlsniperbradfitz
authored andcommitted
cmd/dist: fix compilation on windows
Add missing extensions to binary files in order to allow execution. Change-Id: Idfe4c72c80c26b7b938023bc7bbe1ef85e1aa7b0 Change-Id: Idfe4c72c80c26b7b938023bc7bbe1ef85e1aa7b0 GitHub-Last-Rev: ed9d812 GitHub-Pull-Request: golang#26464 Reviewed-on: https://go-review.googlesource.com/124936 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent f2ed3e1 commit d145d92

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
@@ -80,7 +80,7 @@ set GOBIN=
8080
"%GOROOT_BOOTSTRAP%\bin\go" build -o cmd\dist\dist.exe .\cmd\dist
8181
endlocal
8282
if errorlevel 1 goto fail
83-
.\cmd\dist\dist env -w -p >env.bat
83+
.\cmd\dist\dist.exe env -w -p >env.bat
8484
if errorlevel 1 goto fail
8585
call env.bat
8686
del env.bat
@@ -104,7 +104,7 @@ if x%4==x--no-banner set buildall=%buildall% --no-banner
104104
:: Run dist bootstrap to complete make.bash.
105105
:: Bootstrap installs a proper cmd/dist, built with the new toolchain.
106106
:: Throw ours, built with Go 1.4, away after bootstrap.
107-
.\cmd\dist\dist bootstrap %vflag% %buildall%
107+
.\cmd\dist\dist.exe bootstrap %vflag% %buildall%
108108
if errorlevel 1 goto fail
109109
del .\cmd\dist\dist.exe
110110
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)