In case of multilib, the values of CC and HOST_ARCH in self.td are
not valid for lib32. We need to use the env vars sourced by the
env script.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
# Check that the cross-compiler used is the one we set.
data = json.loads(self._run(f"meson introspect --compilers {builddir}"))
- self.assertIn(self.td.get("CC").split()[0], data["host"]["c"]["exelist"])
+ self.assertIn(self._run("echo $CC").split()[0], data["host"]["c"]["exelist"])
# Check that the target architectures was set correctly.
data = json.loads(self._run(f"meson introspect --machines {builddir}"))
- self.assertEqual(data["host"]["cpu"], self.td["HOST_ARCH"])
+ self.assertEqual(data["host"]["cpu"], self._run("echo -n $OECORE_MESON_HOST_CPU"))
self._run(f"meson compile -C {builddir} -v")