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

build: fix darwin/386 build

R=rsc
CC=golang-dev
https://golang.org/cl/2443041
This commit is contained in:
Andrew Gerrand 2010-10-12 11:49:05 +11:00
parent 054be1b6c3
commit f75129894c

View File

@ -54,6 +54,11 @@ ifeq ($(GOARCH),)
GOARCH:=$(GOHOSTARCH) GOARCH:=$(GOHOSTARCH)
endif endif
# darwin requires GOHOSTARCH match GOARCH
ifeq ($(GOOS),darwin)
GOHOSTARCH:=$(GOARCH)
endif
ifeq ($(GOARCH),386) ifeq ($(GOARCH),386)
O:=8 O:=8
else ifeq ($(GOARCH),amd64) else ifeq ($(GOARCH),amd64)