Commit b11740fb authored by Russ Cox's avatar Russ Cox

build: fixes for native arm build

R=kaib
CC=golang-dev
https://golang.org/cl/2254044
parent a2450c14
......@@ -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
......
......@@ -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'
......
......@@ -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'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment