mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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
This commit is contained in:
parent
b1d9ae9406
commit
b5d81e5ed5
2 changed files with 13 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue