Source: meson Tags: patch Please add an autopkgtest for cross building. Here is a pretty simple case that should work (and doesn't work in unstable at present):
Depends: meson, g++-arm-linux-gnueabihf Tests: crossbuild crossbuild script: -----8<-----8<-----8<----- #!/bin/sh set -e cd "${ADTTMP:-/tmp}" mkdir testproject cd testproject cat >meson.build <<EOF project('tutorial', 'c') executable('demo', 'main.c') EOF cat >main.c <<EOF #include<stdio.h> int main(int argc, char **argv) { printf("Hello there.\n"); return 0; } EOF mkdir build cd build /usr/share/meson/debcrossgen --arch armhf -o cross-file.txt meson --cross-file cross-file.txt .. ninja ----->8----->8----->8----- The test case is currently broken due to https://github.com/mesonbuild/meson/issues/6431 Helmut