internal/rosa: configurable architecture

This enables curing via binfmt.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-07 19:45:36 +09:00
parent 8d72b9e5bd
commit 65b7dd8b37
8 changed files with 39 additions and 53 deletions

View File

@@ -2,7 +2,6 @@ package rosa
import (
"regexp"
"runtime"
"slices"
"strings"
@@ -248,7 +247,7 @@ func (t Toolchain) newLLVM() (pkg.Artifact, string) {
// unwind: fails on musl
"eh_frame_fde_pc_range",
}
switch runtime.GOARCH {
switch arch {
case "arm64":
skipChecks = append(skipChecks,
// LLVM: intermittently crashes