]> Cypherpunks repositories - gostls13.git/commitdiff
build: add make.bash --dist-tool
authorRuss Cox <rsc@golang.org>
Mon, 6 Feb 2012 18:48:43 +0000 (13:48 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 6 Feb 2012 18:48:43 +0000 (13:48 -0500)
R=golang-dev, n13m3y3r
CC=golang-dev
https://golang.org/cl/5634048

src/make.bash

index fcc320e573dd8f4c9355ce8513359b8f8fbc2a07..32a91a2fc9d6fcb5fa5a23d4a0c452cb3fd65954 100755 (executable)
@@ -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