1
0
forked from rosa/hakurei

internal/rosa/llvm: skip unwind_leaffunction on arm64

This unexpectedly passes.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-02 05:52:53 +09:00
parent 1d5d063d6a
commit a57a8fd5d8

View File

@@ -2,6 +2,7 @@ package rosa
import ( import (
"regexp" "regexp"
"runtime"
"strings" "strings"
"hakurei.app/internal/pkg" "hakurei.app/internal/pkg"
@@ -93,6 +94,13 @@ func (t Toolchain) newLLVM() (pkg.Artifact, string) {
// unwind: fails on musl // unwind: fails on musl
"eh_frame_fde_pc_range", "eh_frame_fde_pc_range",
} }
switch runtime.GOARCH {
case "arm64":
skipChecks = append(skipChecks,
// unwind: unexpectedly passes
"unwind_leaffunction",
)
}
for i, s := range skipChecks { for i, s := range skipChecks {
s = regexp.QuoteMeta(s) s = regexp.QuoteMeta(s)
s = strings.ReplaceAll(s, "/", "\\/") s = strings.ReplaceAll(s, "/", "\\/")