cmd/dist: fix windows build.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12351045
This commit is contained in:
Rémy Oudompheng 2013-08-02 14:29:04 -07:00 committed by Brad Fitzpatrick
parent 7acf9e93de
commit 0fe65c4f49

View file

@ -60,7 +60,7 @@ echo # Building C bootstrap tool.
echo cmd/dist echo cmd/dist
if not exist ..\bin\tool mkdir ..\bin\tool if not exist ..\bin\tool mkdir ..\bin\tool
:: Windows has no glob expansion, so spell out cmd/dist/*.c. :: Windows has no glob expansion, so spell out cmd/dist/*.c.
gcc -O2 -Wall -Werror -o cmd/dist/dist.exe -Icmd/dist %DEFGOROOT% cmd/dist/buf.c cmd/dist/build.c cmd/dist/buildgc.c cmd/dist/buildruntime.c cmd/dist/goc2c.c cmd/dist/main.c cmd/dist/windows.c cmd/dist/arm.c gcc -O2 -Wall -Werror -o cmd/dist/dist.exe -Icmd/dist %DEFGOROOT% cmd/dist/buf.c cmd/dist/build.c cmd/dist/buildgc.c cmd/dist/buildgo.c cmd/dist/buildruntime.c cmd/dist/goc2c.c cmd/dist/main.c cmd/dist/windows.c cmd/dist/arm.c
if errorlevel 1 goto fail if errorlevel 1 goto fail
.\cmd\dist\dist env -wp >env.bat .\cmd\dist\dist env -wp >env.bat
if errorlevel 1 goto fail if errorlevel 1 goto fail