X Tutup
Skip to content

Commit 2405671

Browse files
committed
platforms: add "ios" as known OS, "loong64" as known ARCH
- GOOS iOS was added in https://go-review.googlesource.com/c/go/+/254740, and part of go1.16beta1 - GOARCH loong64 was added in https://go-review.googlesource.com/c/go/+/333909, and currently only in master Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent a963242 commit 2405671

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platforms/database.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func isLinuxOS(os string) bool {
3838
// The OS value should be normalized before calling this function.
3939
func isKnownOS(os string) bool {
4040
switch os {
41-
case "aix", "android", "darwin", "dragonfly", "freebsd", "hurd", "illumos", "js", "linux", "nacl", "netbsd", "openbsd", "plan9", "solaris", "windows", "zos":
41+
case "aix", "android", "darwin", "dragonfly", "freebsd", "hurd", "illumos", "ios", "js", "linux", "nacl", "netbsd", "openbsd", "plan9", "solaris", "windows", "zos":
4242
return true
4343
}
4444
return false
@@ -60,7 +60,7 @@ func isArmArch(arch string) bool {
6060
// The arch value should be normalized before being passed to this function.
6161
func isKnownArch(arch string) bool {
6262
switch arch {
63-
case "386", "amd64", "amd64p32", "arm", "armbe", "arm64", "arm64be", "ppc64", "ppc64le", "mips", "mipsle", "mips64", "mips64le", "mips64p32", "mips64p32le", "ppc", "riscv", "riscv64", "s390", "s390x", "sparc", "sparc64", "wasm":
63+
case "386", "amd64", "amd64p32", "arm", "armbe", "arm64", "arm64be", "ppc64", "ppc64le", "loong64", "mips", "mipsle", "mips64", "mips64le", "mips64p32", "mips64p32le", "ppc", "riscv", "riscv64", "s390", "s390x", "sparc", "sparc64", "wasm":
6464
return true
6565
}
6666
return false

0 commit comments

Comments
 (0)
X Tutup