]> code.ossystems Code Review - openembedded-core.git/commit
meson: fix cross detection
authorRoss Burton <ross.burton@intel.com>
Mon, 7 Oct 2019 10:11:38 +0000 (11:11 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Oct 2019 10:22:19 +0000 (11:22 +0100)
commit9aa543aa9bd78c63343ae28fc85113ca2c9e0094
treed0a398bbc58b57294ec47bdaeca2e82a8f6f49da
parente78641854c54f102301cec3d341a86c520c3edd0
meson: fix cross detection

Meson 0.51 onwards detects if a build is cross by whether the host and build
machines match.  However this doesn't work in a number of cross compilation
cases: notably where host is Windows but build is Linux, but also the common
OpenEmbedded case where the host and build machine are both x86-64.

Previously we'd patched this to instead look at whether an executable wrapper is
needed: our cross files always set this to true so all cross builds would be
identified as cross.  However, this breaks build on the target as without a
cross file the early cross build detection fails as we don't yet know if an exe
wrapper is needed.

The neater solution is to simply go back to the older logic: a cross build has
cross files defined.

[ YOCTO #13571 ]

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/meson/meson.inc
meta/recipes-devtools/meson/meson/0001-Cross-build-is-defined-by-the-existance-of-a-cross-f.patch [new file with mode: 0644]
meta/recipes-devtools/meson/meson/0001-mesonbuild-environment.py-do-not-determine-whether-a.patch [deleted file]