Draft: [soldier] Improve cross-toolchains for Meson
Backported from sniper. Originally part of steamrt/tasks#258, but nice to have as a minor improvement in its own right.
/cc @denittis
-
meson: Add cross-files for i686-linux-gnu cross-compiling
Debian is generally moving away from multilib (-m32) and towards true cross-compilation as the recommended way to build 32-bit binaries in a 64-bit container.
-
meson: Add cross and native files for specific versions
gcc 8 and clang 7 are the defaults and are installed in soldier by default.
-
meson: Use non-deprecated section for built-in options
Meson 0.56.0 deprecated use of [properties] for these.
-
Add Meson native-file for gcc, for completeness
This is the default, but explicit is sometimes better than implicit.
-
tests: Parameterize testing gcc* -m32