diff options
| author | Russ Cox <rsc@golang.org> | 2012-02-12 23:14:37 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2012-02-12 23:14:37 -0500 |
| commit | b5d81e5ed57287a97b0f81b1928f8356e8660afc (patch) | |
| tree | 506f5a9d74a7267a60d175eb259243c396157035 /src/make.bash | |
| parent | b1d9ae9406e0217731665da622b7a29fadc3efbd (diff) | |
| download | go-b5d81e5ed57287a97b0f81b1928f8356e8660afc.tar.xz | |
build: reject make.bash on Windows
Also, echo cmd/dist during bootstrap build
Makes that phase look like all the others.
Fixes #2908.
R=golang-dev, alex.brainman, bradfitz
CC=golang-dev
https://golang.org/cl/5655065
Diffstat (limited to 'src/make.bash')
| -rwxr-xr-x | src/make.bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/make.bash b/src/make.bash index 55a292eba4..81ceeb7298 100755 --- a/src/make.bash +++ b/src/make.bash @@ -9,6 +9,16 @@ if [ ! -f run.bash ]; then exit 1 fi +# Test for Windows. +case "$(uname)" in +*MINGW* | *WIN32* | *CYGWIN*) + echo 'ERROR: Do not use make.bash to build on Windows.' + echo 'Use make.bat instead.' + echo + exit 1 + ;; +esac + # Test for bad ld. if ld --version 2>&1 | grep 'gold.* 2\.20' >/dev/null; then echo 'ERROR: Your system has gold 2.20 installed.' @@ -46,6 +56,7 @@ done # Finally! Run the build. echo '# Building C bootstrap tool.' +echo cmd/dist mkdir -p ../bin/tool export GOROOT="$(cd .. && pwd)" GOROOT_FINAL="${GOROOT_FINAL:-$GOROOT}" |
