1
0
mirror of https://github.com/golang/go synced 2024-11-21 15:24:45 -07:00

build: fixes for native arm build

R=kaib
CC=golang-dev
https://golang.org/cl/2254044
This commit is contained in:
Russ Cox 2010-09-21 22:41:32 -04:00
parent a2450c1456
commit b11740fb6d
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ ifeq ($(GOOS),darwin)
GOARCH:=${shell if sysctl machdep.cpu.extfeatures | grep EM64T >/dev/null; then echo amd64; else uname -m | sed 's/i386/386/'; fi}
else
# Ask uname -m for the processor.
GOARCH:=${shell uname -m | sed 's/^..86$$/386/; s/^.86$$/386/; s/x86_64/amd64/'}
GOARCH:=${shell uname -m | sed 's/^..86$$/386/; s/^.86$$/386/; s/x86_64/amd64/; s/arm.*/arm/'}
endif
endif

View File

@ -14,7 +14,7 @@ X386)
;;
Xarm)
export A=5
export E=${GORUN:-qemu-arm -cpu cortex-a8}
export E="$GORUN"
;;
*)
echo 1>&2 run: unsupported '$GOARCH'

View File

@ -13,7 +13,7 @@ X386)
;;
Xarm)
export A=5
export E="${GORUN:-qemu-arm -cpu cortex-a8}"
export E="$GORUN"
;;
*)
echo 1>&2 run: unsupported '$GOARCH'