diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-22 13:13:53 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-22 13:31:24 +0900 |
| commit | fe1acbe8bc14d8d8ae19e94d2b80576f6d6b183e (patch) | |
| tree | fa95526febe2f625de1fddfe4fa593ea128bd044 /internal/rosa/python.go | |
| parent | 9dfbf95db02054204defbe422099c02b790a19fc (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/python.go')
| -rw-r--r-- | internal/rosa/python.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/rosa/python.go b/internal/rosa/python.go index 54022bd7..e97ded49 100644 --- a/internal/rosa/python.go +++ b/internal/rosa/python.go @@ -50,6 +50,10 @@ func (*PipHelper) wantsDir() (string, bool) { return `"$(mktemp -d)"`, false } // script generates the pip3 install command. func (attr *PipHelper) script(t Toolchain, name string) string { + if t.cross() { + panic(CrossError(name)) + } + if attr == nil { attr = new(PipHelper) } |
