diff options
author | Russ Cox <rsc@golang.org> | 2012-02-06 13:48:43 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2012-02-06 13:48:43 -0500 |
commit | cf8951b654c7b3ca9be7e25755da5082e85c1e1e (patch) | |
tree | 325153fef7e809ef4a0f52b7e61e993912d51b16 | |
parent | 7f607848f79b1af35070065c34c5a1b703bd8fc7 (diff) | |
download | go-cf8951b654c7b3ca9be7e25755da5082e85c1e1e.tar.gz |
build: add make.bash --dist-tool
R=golang-dev, n13m3y3r
CC=golang-dev
http://codereview.appspot.com/5634048
-rwxr-xr-x | src/make.bash | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash index fcc320e57..32a91a2fc 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 |