mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 09:25:38 +00:00
cmd/gogio: handle darwin/arm64 in archNDK
This makes gogio builds work for android on darwin/arm64. Signed-off-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
@@ -798,6 +798,14 @@ func archNDK() string {
|
|||||||
arch = "x86"
|
arch = "x86"
|
||||||
case "amd64":
|
case "amd64":
|
||||||
arch = "x86_64"
|
arch = "x86_64"
|
||||||
|
case "arm64":
|
||||||
|
if runtime.GOOS == "darwin" {
|
||||||
|
// Workaround for arm64 macOS. This will keep working until
|
||||||
|
// Apple deprecates Rosetta 2.
|
||||||
|
arch = "x86_64"
|
||||||
|
} else {
|
||||||
|
panic("unsupported GOARCH: " + runtime.GOARCH)
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
panic("unsupported GOARCH: " + runtime.GOARCH)
|
panic("unsupported GOARCH: " + runtime.GOARCH)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user