• David Crawshaw's avatar
    cmd/go: put computed GOROOT in built binaries · 06f4d936
    David Crawshaw authored
    As of CL 42533, cmd/go will recompute its GOROOT based on the
    location of its own executable. This CL plumbs that computed GOROOT
    into every binary it builds using the linker -X flag. This
    means binaries built with a moved cmd/go will report the GOROOT
    they were built in from runtime.GOROOT().
    
    Fixes #21313
    
    Change-Id: I6c2c559f40f2a0c867ab60cf47c6dbc73ae5e28a
    Reviewed-on: https://go-review.googlesource.com/61310
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    06f4d936
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...