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 | 1c290fda500a748abcdb4622136c047787823534 (patch) | |
| tree | 3346e847d9f77b50a951faaec830b03a815525ef /src/make.bash | |
| parent | ae7497bda63382930cf729803435fc455980c9dc (diff) | |
| download | go-1c290fda500a748abcdb4622136c047787823534.tar.xz | |
build: add make.bash --dist-tool
R=golang-dev, n13m3y3r
CC=golang-dev
https://golang.org/cl/5634048
Diffstat (limited to 'src/make.bash')
| -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 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 |
