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/meson.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/rosa/meson.go') diff --git a/internal/rosa/meson.go b/internal/rosa/meson.go index 97262fbb..25291dd0 100644 --- a/internal/rosa/meson.go +++ b/internal/rosa/meson.go @@ -65,6 +65,10 @@ func (attr *MesonHelper) isPython() bool { // script generates the cure script. func (attr *MesonHelper) script(t Toolchain, name string) string { + if t.cross() { + panic(CrossError(name)) + } + if attr == nil { attr = new(MesonHelper) } -- cgit v1.3.1