Cross-compilation fails with a meson error about g-ir-compiler
I’m trying to cross-compile a project using nix and it transitively depends on
The build fails after meson is done configuring but before building:
Option buildtype is: plain [default: debugoptimized] Found ninja-1.10.0 at /nix/store/gpl1qma00zw28ndw3ry886pj8lkqzvjb-ninja-1.10.0/bin/ninja ERROR: Cannot use target g-ir-compiler as a generator because it is built for the host machine and no exe wrapper is defined or needs_exe_wrapper is true. You might want to set `native: true` instead to build it for the build machine. A full log can be found at /build/gobject-introspection-1.64.1/build/meson-logs/meson-log.txt
The log file itself does not reveal any additional interesting information.
I have read a number of issues related to cross-compilation here and I fail to understand why this project doesn’t "just" build g-ir-compiler for both host and the target and invoke the host g-ir-compiler when it needs it during the build process?