diff options
Diffstat (limited to 'libgo/go')
-rw-r--r-- | libgo/go/go/build/build.go | 2 | ||||
-rw-r--r-- | libgo/go/go/build/deps_test.go | 2 | ||||
-rw-r--r-- | libgo/go/go/build/syslist.go | 2 | ||||
-rw-r--r-- | libgo/go/runtime/extern.go | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/libgo/go/go/build/build.go b/libgo/go/go/build/build.go index 50d2fb4..d06a9be 100644 --- a/libgo/go/go/build/build.go +++ b/libgo/go/go/build/build.go @@ -1211,6 +1211,8 @@ func ArchChar(goarch string) (string, error) { return "6", nil case "arm": return "5", nil + case "arm64": + return "7", nil } return "", errors.New("unsupported GOARCH " + goarch) } diff --git a/libgo/go/go/build/deps_test.go b/libgo/go/go/build/deps_test.go index dd162c7..88f3eca 100644 --- a/libgo/go/go/build/deps_test.go +++ b/libgo/go/go/build/deps_test.go @@ -360,7 +360,7 @@ func allowed(pkg string) map[string]bool { var bools = []bool{false, true} var geese = []string{"darwin", "dragonfly", "freebsd", "linux", "netbsd", "openbsd", "plan9", "windows"} -var goarches = []string{"386", "amd64", "arm"} +var goarches = []string{"386", "amd64", "arm", "arm64"} type osPkg struct { goos, pkg string diff --git a/libgo/go/go/build/syslist.go b/libgo/go/go/build/syslist.go index a322c88..3580d82 100644 --- a/libgo/go/go/build/syslist.go +++ b/libgo/go/go/build/syslist.go @@ -5,4 +5,4 @@ package build const goosList = "darwin dragonfly freebsd linux netbsd openbsd plan9 windows solaris " -const goarchList = "386 amd64 arm alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 " +const goarchList = "386 amd64 arm arm64 alpha m68k mipso32 mipsn32 mipsn64 mipso64 ppc ppc64 sparc sparc64 " diff --git a/libgo/go/runtime/extern.go b/libgo/go/runtime/extern.go index 527e9cd..f45104f 100644 --- a/libgo/go/runtime/extern.go +++ b/libgo/go/runtime/extern.go @@ -185,5 +185,5 @@ func Version() string { const GOOS string = theGoos // GOARCH is the running program's architecture target: -// 386, amd64, or arm. +// 386, amd64, arm or arm64. const GOARCH string = theGoarch |