aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-02 05:52:53 +0900
committerOphestra <cat@gensokyo.uk>2026-05-02 05:53:00 +0900
commita57a8fd5d8de1890c3e6d781ad577d0752c55e68 (patch)
tree358341b8c919c6820f103eec1cfde221aa050f6d /internal
parent1d5d063d6a443c9d4a1206d2743e4824411da956 (diff)
internal/rosa/llvm: skip unwind_leaffunction on arm64
This unexpectedly passes. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/llvm.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go
index aac950e6..4e68f8cb 100644
--- a/internal/rosa/llvm.go
+++ b/internal/rosa/llvm.go
@@ -2,6 +2,7 @@ package rosa
import (
"regexp"
+ "runtime"
"strings"
"hakurei.app/internal/pkg"
@@ -93,6 +94,13 @@ func (t Toolchain) newLLVM() (pkg.Artifact, string) {
// unwind: fails on musl
"eh_frame_fde_pc_range",
}
+ switch runtime.GOARCH {
+ case "arm64":
+ skipChecks = append(skipChecks,
+ // unwind: unexpectedly passes
+ "unwind_leaffunction",
+ )
+ }
for i, s := range skipChecks {
s = regexp.QuoteMeta(s)
s = strings.ReplaceAll(s, "/", "\\/")