aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/azalea
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-22 01:56:23 +0900
committerOphestra <cat@gensokyo.uk>2026-10-22 11:10:01 +0900
commit9dfbf95db02054204defbe422099c02b790a19fc (patch)
treef8c318ebfc5c824b2eb5e7a8aac3b835ee05a4ed /internal/rosa/azalea
parent29f86b3446c9fe35d2a359df45471abdaa35cea4 (diff)
internal/rosa: initial cross-compilation support
This successfully cross-compiles the toolchain. More work is needed to support cross-compilation on all native helpers and existing packages. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/azalea')
-rw-r--r--internal/rosa/azalea/evaluate.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/rosa/azalea/evaluate.go b/internal/rosa/azalea/evaluate.go
index cb5e8d12..59702062 100644
--- a/internal/rosa/azalea/evaluate.go
+++ b/internal/rosa/azalea/evaluate.go
@@ -206,6 +206,8 @@ var (
IdentTools = unique.Make(Ident("tools"))
// IdentInputs has the same semantics as [IdentTools].
IdentInputs = unique.Make(Ident("inputs"))
+ // IdentCross has the same semantics as [IdentTools].
+ IdentCross = unique.Make(Ident("cross"))
// IdentRuntime has the same semantics as [IdentTools].
IdentRuntime = unique.Make(Ident("runtime"))
// IdentExtra has the same semantics as [IdentTools].
@@ -361,6 +363,7 @@ func evaluateAny(d PF, s []Frame, expr, rp any) bool {
for _, special := range [...]unique.Handle[Ident]{
IdentTools,
IdentInputs,
+ IdentCross,
IdentRuntime,
IdentExtra,
} {