1
0
mirror of https://github.com/golang/go synced 2024-11-20 08:04:42 -07:00

runtime: record $GOROOT_FINAL for runtime.GOROOT

Update #1527.

R=adg, oerdnj
CC=golang-dev
https://golang.org/cl/4171060
This commit is contained in:
Russ Cox 2011-02-18 11:35:43 -05:00
parent afac1c2654
commit d3ac545f80

View File

@ -129,7 +129,7 @@ mkversion: mkversion.c
quietgcc -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"
version.go: mkversion
./mkversion >version.go
GOROOT="$(GOROOT_FINAL)" ./mkversion >version.go
version_$(GOARCH).go:
(echo 'package runtime'; echo 'const theGoarch = "$(GOARCH)"') >$@