From 272921b5d8327aa3e444d5ba7d2bf989b5d81e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aram=20H=C4=83v=C4=83rneanu?= Date: Sun, 8 Mar 2015 13:55:49 +0100 Subject: [PATCH] go/build: add GOARCH=arm64 Change-Id: I51db032e3dc2762d94e4000914b30813946250f7 Reviewed-on: https://go-review.googlesource.com/7044 Reviewed-by: Minux Ma Reviewed-by: Dave Cheney Reviewed-by: Russ Cox Reviewed-by: Austin Clements --- src/go/build/build.go | 2 ++ src/go/build/syslist.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/go/build/build.go b/src/go/build/build.go index fc03ddac98..b1fb9ef94f 100644 --- a/src/go/build/build.go +++ b/src/go/build/build.go @@ -1396,6 +1396,8 @@ func ArchChar(goarch string) (string, error) { return "6", nil case "arm": return "5", nil + case "arm64": + return "7", nil case "ppc64", "ppc64le": return "9", nil } diff --git a/src/go/build/syslist.go b/src/go/build/syslist.go index 9246cbf557..e84a06666f 100644 --- a/src/go/build/syslist.go +++ b/src/go/build/syslist.go @@ -5,4 +5,4 @@ package build const goosList = "android darwin dragonfly freebsd linux nacl netbsd openbsd plan9 solaris windows " -const goarchList = "386 amd64 amd64p32 arm ppc64 ppc64le " +const goarchList = "386 amd64 amd64p32 arm arm64 ppc64 ppc64le "