Test that cross-compilation works
This has two parts:
- Test that librsvg can actually be cross-compiled as per
COMPILING.md
- Test that "
make check
" works with the cross-compiled binaries
Apparently cargo test
can be handed an environment variable likeCARGO_TARGET_MIPS_UNKNOWN_LINUX_GNU_RUNNER="qemu-mips -L /usr/mips-linux-gnu"
and it will run the tests there.
We may need to set up a Docker image for CI which has cross-compilers, and also set up a Qemu VM for that platform.
(It seems that rustc runs its x86 tests in a VM that runs on an x86_64 box? We may be able to do something similar and test cross-compilation this way.)