mirror of
https://github.com/golang/go
synced 2024-10-14 11:53:56 +00:00
also in make.rc
Change-Id: I8138b093e3df375a390fd88f0bcb00b603c2cd9b
This commit is contained in:
parent
5055d9aef2
commit
9c7134fa44
|
@ -60,9 +60,11 @@ if(! ~ $#GOROOT_BOOTSTRAP 1){
|
|||
}
|
||||
for(p in $path){
|
||||
if(! test -x $GOROOT_BOOTSTRAP/bin/go){
|
||||
GOROOT_BOOTSTRAP = ()
|
||||
if(go_exe = `{path=$p whatis go}){
|
||||
goroot_bootstrap = $GOROOT_BOOTSTRAP
|
||||
GOROOT_BOOTSTRAP = ()
|
||||
goroot = `{bootstrapenv $go_exe env GOROOT}
|
||||
GOROOT_BOOTSTRAP = $goroot_bootstrap
|
||||
if(! ~ $goroot $GOROOT){
|
||||
if(~ $goroot_bootstrap_set 'true'){
|
||||
echo 'WARNING: '$GOROOT_BOOTSTRAP'/bin/go does not exist, found '$go_exe' from env' >[1=2]
|
||||
|
|
Loading…
Reference in a new issue