internal/rosa: add arm64 strings

This enables building on arm64.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-27 21:12:39 +09:00
parent 41f9aebbb7
commit bd80327a8f
2 changed files with 4 additions and 0 deletions

View File

@@ -208,6 +208,8 @@ func (t Toolchain) newLLVM() (musl, compilerRT, runtimes, clang pkg.Artifact) {
switch runtime.GOARCH {
case "386", "amd64":
target = "X86"
case "arm64":
target = "AArch64"
default:
panic("unsupported target " + runtime.GOARCH)

View File

@@ -49,6 +49,8 @@ func linuxArch() string {
switch runtime.GOARCH {
case "amd64":
return "x86_64"
case "arm64":
return "aarch64"
default:
panic("unsupported target " + runtime.GOARCH)