]> Cypherpunks repositories - gostls13.git/commit
runtime: correct runtime.GOOS, runtime.GOARCH
authorRuss Cox <rsc@golang.org>
Wed, 2 Feb 2011 20:35:54 +0000 (15:35 -0500)
committerRuss Cox <rsc@golang.org>
Wed, 2 Feb 2011 20:35:54 +0000 (15:35 -0500)
commitbc874ec0dd0c803b5dd0ea96f9394bad39a20a74
tree41f00454fb1ccdf0ce201bc68f82593ba991d1f0
parentbd4e49f524bc0e5b033850cbaa923527f7b80af7
runtime: correct runtime.GOOS, runtime.GOARCH

If the same directory was used for multiple builds,
it was possible for a stale version.go to contain the
wrong definitions for $GOOS and $GOARCH, because
they can change even if the hg version does not.
Split into multiple files to fix.

R=r, r2
CC=golang-dev
https://golang.org/cl/4124050
src/pkg/runtime/Makefile
src/pkg/runtime/mkversion.c