mirror of
https://github.com/golang/go
synced 2024-11-21 18:34:44 -07:00
runtime: use HOST_CC to compile mkversion
HOST_CC is set in Make.inc, so use that rather than hardcoding quietgcc R=golang-dev, iant CC=golang-dev https://golang.org/cl/4515163
This commit is contained in:
parent
67b4db9e9e
commit
fd0cf08748
@ -122,10 +122,10 @@ $(GOARCH)/asm.h: mkasmh.sh runtime.acid.$(GOARCH)
|
||||
mv -f $@.x $@
|
||||
|
||||
goc2c: goc2c.c
|
||||
quietgcc -o $@ $<
|
||||
$(HOST_CC) -o $@ $<
|
||||
|
||||
mkversion: mkversion.c
|
||||
quietgcc -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"
|
||||
$(HOST_CC) -o $@ -I "$(GOROOT)/include" $< "$(GOROOT)/lib/lib9.a"
|
||||
|
||||
version.go: mkversion
|
||||
GOROOT="$(GOROOT_FINAL)" ./mkversion >version.go
|
||||
|
Loading…
Reference in New Issue
Block a user