mirror of
https://github.com/golang/go
synced 2024-11-21 22:14:41 -07:00
build: fixes for native arm build
R=kaib CC=golang-dev https://golang.org/cl/2254044
This commit is contained in:
parent
a2450c1456
commit
b11740fb6d
@ -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}
|
GOARCH:=${shell if sysctl machdep.cpu.extfeatures | grep EM64T >/dev/null; then echo amd64; else uname -m | sed 's/i386/386/'; fi}
|
||||||
else
|
else
|
||||||
# Ask uname -m for the processor.
|
# 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
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
2
test/run
2
test/run
@ -14,7 +14,7 @@ X386)
|
|||||||
;;
|
;;
|
||||||
Xarm)
|
Xarm)
|
||||||
export A=5
|
export A=5
|
||||||
export E=${GORUN:-qemu-arm -cpu cortex-a8}
|
export E="$GORUN"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 1>&2 run: unsupported '$GOARCH'
|
echo 1>&2 run: unsupported '$GOARCH'
|
||||||
|
@ -13,7 +13,7 @@ X386)
|
|||||||
;;
|
;;
|
||||||
Xarm)
|
Xarm)
|
||||||
export A=5
|
export A=5
|
||||||
export E="${GORUN:-qemu-arm -cpu cortex-a8}"
|
export E="$GORUN"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo 1>&2 run: unsupported '$GOARCH'
|
echo 1>&2 run: unsupported '$GOARCH'
|
||||||
|
Loading…
Reference in New Issue
Block a user