aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/perl.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/perl.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/perl.go')
-rw-r--r--internal/rosa/perl.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/rosa/perl.go b/internal/rosa/perl.go
index 705b1b8d..55c17916 100644
--- a/internal/rosa/perl.go
+++ b/internal/rosa/perl.go
@@ -29,7 +29,11 @@ func (*MakeMakerHelper) scriptEarly() string { return "" }
func (*MakeMakerHelper) wantsDir() (string, bool) { return "", false }
// script generates Makefile.PL-based build and test commands.
-func (attr *MakeMakerHelper) script(t Toolchain, _ string) string {
+func (attr *MakeMakerHelper) script(t Toolchain, name string) string {
+ if t.cross() {
+ panic(CrossError(name))
+ }
+
if attr == nil {
attr = new(MakeMakerHelper)
}