mirror of
https://github.com/golang/go
synced 2024-11-22 03:44:39 -07:00
rc/env.bash: fix for Go tool-chain build on windows under msys.
The path conversion is done automatically if msys' builtin shell commands are used. R=rsc1, peterGo, brainman, Mr_Dark, r CC=golang-dev https://golang.org/cl/4452042
This commit is contained in:
parent
f3113ee9b9
commit
057fa94d31
10
src/env.bash
10
src/env.bash
@ -3,6 +3,16 @@
|
||||
# Use of this source code is governed by a BSD-style
|
||||
# license that can be found in the LICENSE file.
|
||||
|
||||
# If set to a Windows-style path convert to an MSYS-Unix
|
||||
# one using the built-in shell commands.
|
||||
if [[ "$GOROOT" == *:* ]]; then
|
||||
GOROOT=$(cd "$GOROOT"; pwd)
|
||||
fi
|
||||
|
||||
if [[ "$GOBIN" == *:* ]]; then
|
||||
GOBIN=$(cd "$GOBIN"; pwd)
|
||||
fi
|
||||
|
||||
export GOROOT=${GOROOT:-$(cd ..; pwd)}
|
||||
|
||||
if ! test -f "$GOROOT"/include/u.h
|
||||
|
Loading…
Reference in New Issue
Block a user