]> code.ossystems Code Review - openembedded-core.git/commit
meson.bbclass: include C{, XX}FLAGS in cross args
authorMartin Kelly <mkelly@xevo.com>
Wed, 17 Jan 2018 19:22:56 +0000 (11:22 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Jan 2018 12:18:04 +0000 (12:18 +0000)
commitf435d1b75d3775f6ec0df6027766008b40209fd7
tree8a50bc74bae6ce9db6800aa6f367f7907b053ac7
parent73ff85986d82c8da601d7c7cf9a02961f2f66a09
meson.bbclass: include C{, XX}FLAGS in cross args

Currently, CFLAGS and CXXFLAGS are not making it into the compile line.
This is because meson appends CFLAGS/CXXFLAGS from the environment only
for native but not for cross builds (probably to keep cross-builds more
isolated). As a result, we need to make sure these vars goes into
meson.cross. This is similar to what cmake.bbclass does with
OECMAKE_C_FLAGS and OECMAKE_CXX_FLAGS.

Change c_args and cpp_args in meson.cross to include these vars, and
update write_config[vardeps] accordingly.

Signed-off-by: Martin Kelly <mkelly@xevo.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/meson.bbclass