• David Crawshaw's avatar
    cmd/go, cmd/compile: match tool versions · 98b3e3a0
    David Crawshaw authored
    This change passes runtime.Version from the go tool to the compiler.
    If the versions do not match, the compilation fails.
    The result is a go tool from one GOROOT will complain loudly if it
    is invoked with a different GOROOT value.
    
    Only release versions are checked, so that when developing Go
    you can still use "go install cmd/go" and "go install cmd/compile"
    separately.
    
    Fixes #19064
    
    Change-Id: I17e184d07d3c1092b1d9af53ba55ed3ecf67791d
    Reviewed-on: https://go-review.googlesource.com/42595
    Run-TryBot: David Crawshaw <crawshaw@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    98b3e3a0
Name
Last commit
Last update
..
internal Loading commit data...
testdata Loading commit data...
alldocs.go Loading commit data...
go11.go Loading commit data...
go_test.go Loading commit data...
go_unix_test.go Loading commit data...
go_windows_test.go Loading commit data...
main.go Loading commit data...
mkalldocs.sh Loading commit data...
note_test.go Loading commit data...
vendor_test.go Loading commit data...