Skip to content

build: fix cross-compilation with abuild (introducing pmb:cross-native2)

Caleb Connolly requested to merge caleb/abuild-cross into master

Set things up so that we can run abuild on the native chroot and use it's cross compilation features rather than running it and the build system through QEMU. This massively speeds up building when it works.

Packages can opt-in to this by adding pmb:cross-native2 to their options. It's known to work with well-behaved meson packages with a patch to abuild-meson

I'm describing this as a fix since the way pmb:cross-native worked was fundamentally wrong.

See example usage in pmaports!5755

Fix #659 (closed)

Edited by Oliver Smith

Merge request reports

Loading