breakfastquay / rubberband

Official mirror of Rubber Band Library, an audio time-stretching and pitch-shifting library.
http://breakfastquay.com/rubberband/
GNU General Public License v2.0
580 stars 93 forks source link

Broken cross-compilation with meson #38

Closed BtbN closed 3 years ago

BtbN commented 3 years ago

Since 1.9.1 removed the autotools based build system, I was forced to use meson. However, cross-compiling using meson has so far proven impossible.

The reason is a pretty simple one: https://github.com/breakfastquay/rubberband/blob/default/meson.build#L20

Here the system variable is taken from build_machine instead of host_machine, thus on a build for Windows from Linux, it won't be "windows", and the build script will enable a bunch of non-Windows things, breaking the build.

Just replacing that with host_machine.system() appears to fix the build.

cannam commented 3 years ago

Thank you for the report! I've made that change.