From cddd17f14349a49454141bd755f32d1147f97759 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 24 Oct 2026 14:56:27 +0900 Subject: internal/rosa: cross-compile special case For cross-specific options in packages. Signed-off-by: Ophestra --- internal/rosa/state.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/internal/rosa/state.go b/internal/rosa/state.go index bc404778..f60d323b 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -508,7 +508,8 @@ func (s *S) getFrame() azalea.Frame { } identDefault := k("default") - identArch := unique.Make(azalea.Ident(s.arch)) + identArch := k(s.Arch()) + identCross := k("cross") native := runtime.GOARCH if s.cross() { @@ -747,6 +748,12 @@ func (s *S) getFrame() azalea.Frame { case identArch: return arg.V, true, nil + + case identCross: + if !s.cross() { + continue + } + return arg.V, true, nil } } -- cgit v1.3.1