Skip to content

Commit

Permalink
Update "gvm cross" to support ARM properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tianon committed Jul 21, 2014
1 parent b914f5a commit 78e2e80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/cross
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display_usage() {
display_message "Usage: gvm cross [os] [arch]"
display_message " os = linux/darwin/windows"
display_message " arch = amd64/386 (arm unsupported)"
display_message " arch = amd64/386/arm"
}

display_list() {
Expand All @@ -25,9 +25,9 @@ which go &> /dev/null || display_fatal "Only available in versions after Go 1"
[ -z "$1" ] && display_list

if [ ! -f "$GOROOT/pkg/tool/cross" ]; then
display_message "Installing x86 and x86-64 commands"
display_message "Installing x86, x86-64, and ARM commands"
set -e
for arch in 8 6; do
for arch in 8 6 5; do
for cmd in a c g l; do
go tool dist install -v cmd/$arch$cmd ||
display_fatal "Couldn't compile tool: $arch$cmd"
Expand Down

0 comments on commit 78e2e80

Please sign in to comment.