]> 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 49d6fd9a4df1e6fa28c51fe08f8268a4362cafb1..704290ca5ed1fdcc1a2016bf84e03155aa972741 100755 (executable)
@@ -5,11 +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
-GOBIN = () # Issue 14340
-GOFLAGS = ()
+GOENV=off
+eval `{../bin/go tool dist env}
 
-exec go tool dist test -rebuild $*
+GOPATH=/nonexist-gopath
+exec ../bin/go tool dist test -rebuild $*