]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/run.rc
cmd/compile/internal/inline: score call sites exposed by inlines
[gostls13.git] / src / run.rc
index d0ba866e7dd1e870527c71c577cb3d419a508a05..704290ca5ed1fdcc1a2016bf84e03155aa972741 100755 (executable)
@@ -5,9 +5,13 @@
 
 rfork e
 
-eval `{go env}
+if(! test -f ../bin/go){
+       echo 'run.rc must be run from $GOROOT/src after installing cmd/go' >[1=2]
+       exit wrongdir
+}
 
-GOPATH = () # we disallow local import for non-local packages, if $GOROOT happens
-            # to be under $GOPATH, then some tests below will fail
+GOENV=off
+eval `{../bin/go tool dist env}
 
-exec go tool dist test $*
+GOPATH=/nonexist-gopath
+exec ../bin/go tool dist test -rebuild $*