]> code.ossystems Code Review - openembedded-core.git/commitdiff
meson.bbclass: use HOST_CC_ARCH, not TARGET_CC_ARCH
authorChristopher Larson <chris_larson@mentor.com>
Tue, 9 Jan 2018 15:54:18 +0000 (20:54 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 12 Jan 2018 08:43:55 +0000 (08:43 +0000)
Using TARGET_CC_ARCH is inconsistent with CC, which uses HOST_CC_ARCH, and the
rest of meson.bbclass, which uses HOST_PREFIX, HOST_OS, etc.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/meson.bbclass

index b72e5207abc303ffd4792997100946c37a082f35..4a4c51f840231bb77c7ea4f4d3670b26b6ad1a5b 100644 (file)
@@ -25,7 +25,7 @@ MESONOPTS = " --prefix ${prefix} \
               --localstatedir ${localstatedir} \
               --sharedstatedir ${sharedstatedir}"
 
-MESON_C_ARGS = "${TARGET_CC_ARCH}${TOOLCHAIN_OPTIONS}"
+MESON_C_ARGS = "${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
 MESON_LINK_ARGS = "${MESON_C_ARGS} ${LDFLAGS}"
 
 # both are required but not used by meson