From bd80327a8f87a5f43e17f7c71b8f08c1b337ee28 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 27 Jan 2026 21:12:39 +0900 Subject: [PATCH] internal/rosa: add arm64 strings This enables building on arm64. Signed-off-by: Ophestra --- internal/rosa/llvm.go | 2 ++ internal/rosa/rosa.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index bfd75b2..e147572 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -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) diff --git a/internal/rosa/rosa.go b/internal/rosa/rosa.go index 5c3b030..f90626a 100644 --- a/internal/rosa/rosa.go +++ b/internal/rosa/rosa.go @@ -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)