]> code.ossystems Code Review - openembedded-core.git/commit
meson: only use lists of commands in cross file if required
authorRoss Burton <ross.burton@intel.com>
Wed, 13 Jun 2018 11:50:45 +0000 (12:50 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Jun 2018 09:59:33 +0000 (10:59 +0100)
commit7fd8bc469c2caacc1c2021bd0aa83dd6da7fe1e7
tree10ce9a4e6b9d3e89913ffb6aa969b32bf9d05273
parentc017f5528d1ae6316c9434ffd8702665bfe069f9
meson: only use lists of commands in cross file if required

There's a bug in Meson[1] where it find_program("foo") will fail if foo is
defined in the cross file as a list.

This is causing the Meson build of libdrm to fail, but for this instance we can
work around the problem by only using lists in the cross file if there are
arguments, and just using a string if there are not.

[1] https://github.com/mesonbuild/meson/issues/3737

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/meson.bbclass