]> Cypherpunks repositories - gostls13.git/commit
cmd/go: provide full path as os.Args[0] when invoking tools
authorShenghou Ma <minux@golang.org>
Fri, 11 Sep 2015 04:26:50 +0000 (00:26 -0400)
committerMinux Ma <minux@golang.org>
Fri, 18 Sep 2015 01:55:22 +0000 (01:55 +0000)
commit1fd78e1f600d10475b85381427bda9f14f86e0f0
treec1cf7d022fd33db4353352e1f6159bd9c4c1c499
parenteddd7ff3cd749ecdbc05ed5c190c860c2ac6d161
cmd/go: provide full path as os.Args[0] when invoking tools

cmd/dist needs to re-exec or open itself to detect GOARM (CL 3973) and
detect host machine endianness (CL 14460).

Change-Id: If6438831ab0715ba8e236d64bb2c7c1bde1470aa
Reviewed-on: https://go-review.googlesource.com/14476
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/tool.go