From: Russ Cox Date: Mon, 6 Feb 2012 18:48:43 +0000 (-0500) Subject: build: add make.bash --dist-tool X-Git-Tag: weekly.2012-02-07~29 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1c290fda500a748abcdb4622136c047787823534;p=gostls13.git build: add make.bash --dist-tool R=golang-dev, n13m3y3r CC=golang-dev https://golang.org/cl/5634048 --- diff --git a/src/make.bash b/src/make.bash index fcc320e573..32a91a2fc9 100755 --- a/src/make.bash +++ b/src/make.bash @@ -51,6 +51,11 @@ DEFGOROOT='-DDEFAULT_GOROOT="'"$(cd .. && pwd)"'"' gcc -O2 -Wall -Werror -o ../bin/tool/dist -Icmd/dist "$DEFGOROOT" cmd/dist/*.c echo +if [ "$1" = "--dist-tool" ]; then + # Stop after building dist tool. + exit 0 +fi + echo '# Building compilers and Go bootstrap tool.' ../bin/tool/dist bootstrap -v # builds go_bootstrap echo