1
0
mirror of https://github.com/golang/go synced 2024-11-13 18:50:24 -07:00

build: add make.bash --dist-tool

R=golang-dev, n13m3y3r
CC=golang-dev
https://golang.org/cl/5634048
This commit is contained in:
Russ Cox 2012-02-06 13:48:43 -05:00
parent ae7497bda6
commit 1c290fda50

View File

@ -51,6 +51,11 @@ DEFGOROOT='-DDEFAULT_GOROOT="'"$(cd .. && pwd)"'"'
gcc -O2 -Wall -Werror -o ../bin/tool/dist -Icmd/dist "$DEFGOROOT" cmd/dist/*.c gcc -O2 -Wall -Werror -o ../bin/tool/dist -Icmd/dist "$DEFGOROOT" cmd/dist/*.c
echo echo
if [ "$1" = "--dist-tool" ]; then
# Stop after building dist tool.
exit 0
fi
echo '# Building compilers and Go bootstrap tool.' echo '# Building compilers and Go bootstrap tool.'
../bin/tool/dist bootstrap -v # builds go_bootstrap ../bin/tool/dist bootstrap -v # builds go_bootstrap
echo echo