]> code.ossystems Code Review - openembedded-core.git/commit
meson: warn if the default value from meson.get_cross_property() is being used
authorRoss Burton <ross.burton@intel.com>
Thu, 21 Mar 2019 12:32:17 +0000 (12:32 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 24 Mar 2019 16:59:43 +0000 (16:59 +0000)
commit669ddafcc9f363cbb81d4b71649241257785a840
treeb804ed65c5714b22d5cfa93607c1474cfbc17f29
parent72e8597562fa7d8b0f19ed5c8727ebdf172c96a9
meson: warn if the default value from meson.get_cross_property() is being used

Projects such as glib have tests that execute code to check their behaviour, and
in cross-compilation environments where they can't execute code fall back on
meson.get_cross_property() with a default value.  These default values may not
be appropriate: for example if glib can't verify that vsprintf() isn't broken it
assumes that it is, and embeds the gnulib copy of vsprintf() instead of using
glibc's implementation.

Add a warning whenever the default value for get_cross_property() is used so
that we can tell this is happening and set the value appropriately.

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/cross-prop-default.patch [new file with mode: 0644]