aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/state.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-22 13:13:53 +0900
committerOphestra <cat@gensokyo.uk>2026-10-22 13:31:24 +0900
commitfe1acbe8bc14d8d8ae19e94d2b80576f6d6b183e (patch)
treefa95526febe2f625de1fddfe4fa593ea128bd044 /internal/rosa/state.go
parent9dfbf95db02054204defbe422099c02b790a19fc (diff)
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/state.go')
-rw-r--r--internal/rosa/state.go7
1 files changed, 4 insertions, 3 deletions
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