Commit 5a0c322b authored by Aram Hăvărneanu's avatar Aram Hăvărneanu

cmd/dist: add support for GOARCH=arm64

Change-Id: I92b4301b64054272d78dd15c16bf6ff592acad26
Reviewed-on: https://go-review.googlesource.com/7141Reviewed-by: default avatarMinux Ma <minux@golang.org>
Reviewed-by: default avatarDave Cheney <dave@cheney.net>
Reviewed-by: default avatarRuss Cox <rsc@golang.org>
Reviewed-by: default avatarIan Lance Taylor <iant@golang.org>
parent 3ab794c8
...@@ -49,7 +49,7 @@ var ( ...@@ -49,7 +49,7 @@ var (
) )
// The known architecture letters. // The known architecture letters.
var gochars = "566899" var gochars = "5667899"
// The known architectures. // The known architectures.
var okgoarch = []string{ var okgoarch = []string{
...@@ -57,6 +57,7 @@ var okgoarch = []string{ ...@@ -57,6 +57,7 @@ var okgoarch = []string{
"arm", "arm",
"amd64", "amd64",
"amd64p32", "amd64p32",
"arm64",
"386", "386",
"ppc64", "ppc64",
"ppc64le", "ppc64le",
...@@ -909,6 +910,8 @@ var cleantab = []string{ ...@@ -909,6 +910,8 @@ var cleantab = []string{
"cmd/5l", "cmd/5l",
"cmd/6g", "cmd/6g",
"cmd/6l", "cmd/6l",
"cmd/7g",
"cmd/7l",
"cmd/8g", "cmd/8g",
"cmd/8l", "cmd/8l",
"cmd/9g", "cmd/9g",
......
...@@ -27,6 +27,8 @@ var bootstrapDirs = []string{ ...@@ -27,6 +27,8 @@ var bootstrapDirs = []string{
"5l", "5l",
"6g", "6g",
"6l", "6l",
"7g",
"7l",
"8g", "8g",
"8l", "8l",
"9g", "9g",
...@@ -41,6 +43,7 @@ var bootstrapDirs = []string{ ...@@ -41,6 +43,7 @@ var bootstrapDirs = []string{
"internal/ld", "internal/ld",
"internal/obj", "internal/obj",
"internal/obj/arm", "internal/obj/arm",
"internal/obj/arm64",
"internal/obj/ppc64", "internal/obj/ppc64",
"internal/obj/x86", "internal/obj/x86",
"old5a", "old5a",
......
...@@ -422,6 +422,8 @@ func main() { ...@@ -422,6 +422,8 @@ func main() {
gohostarch = "386" gohostarch = "386"
case strings.Contains(out, "arm"): case strings.Contains(out, "arm"):
gohostarch = "arm" gohostarch = "arm"
case strings.Contains(out, "aarch64"):
gohostarch = "arm64"
case strings.Contains(out, "ppc64le"): case strings.Contains(out, "ppc64le"):
gohostarch = "ppc64le" gohostarch = "ppc64le"
case strings.Contains(out, "ppc64"): case strings.Contains(out, "ppc64"):
......
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