Skip to contentSkip to conversation

meson.bbclass: use HOST_CC_ARCH, not TARGET_CC_ARCH

PATCH New Christopher Larson 1 participant 1 message Jan 9, 2018 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson.bbclass: use HOST_CC_ARCH, not TARGET_CC_ARCH

From: Christopher Larson <[email protected]>

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.

---
 meta/classes/meson.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/meson.bbclass +1 -1
index b72e5207abc..4a4c51f8402 100644
@@ -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
Signature · 1 line
2.11.1