From fe1acbe8bc14d8d8ae19e94d2b80576f6d6b183e Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 22 Oct 2026 13:13:53 +0900 Subject: internal/rosa: optionally bypass cross-compilation Cross-compilation is not applicable to everything, and it is quite wasteful rebuilding the same thing for every architecture when it is just using host tools to create arch-independent files. Signed-off-by: Ophestra --- internal/rosa/state.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'internal/rosa/state.go') diff --git a/internal/rosa/state.go b/internal/rosa/state.go index 18f9a6f3..bda8d32e 100644 --- a/internal/rosa/state.go +++ b/internal/rosa/state.go @@ -1100,10 +1100,10 @@ func (ctx *evalContext) pf( overlay string join bool - tools, inputs, cross, extra azalea.Array + tools, inputs, extra azalea.Array - runtimes = azalea.Array{} - bootstrap = true + cross, runtimes = azalea.Array{}, azalea.Array{} + bootstrap = true ) if err = args.Apply(map[unique.Handle[azalea.Ident]]any{ k("description"): &meta.Description, @@ -1144,6 +1144,7 @@ func (ctx *evalContext) pf( return } attr.Std = !bootstrap + attr.NoArch = cross == nil var inputsH, extraH P if inputsH, err = toHandles(inputs); err != nil { return -- cgit v1.3.1