Skip to contentSkip to conversation

clang: update for cmake changes in oe-core

PATCH New Ross Burton 1 participant 1 message May 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clang: update for cmake changes in oe-core

cmake.bbclass in oe-core master (soon to be Pyro) doesn't set CMAKE_CROSSCOMPILING unconditionally, but only when it's actually cross-compiling.

This means the clang-native build doesn't think it's cross-compiling, so the recipe can be simplified.

---
 recipes-devtools/clang/clang_git.bb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
recipes-devtools/clang/clang_git.bb +1 -6
index 4f712e1..839fa15 100644
@@ -112,13 +112,8 @@ DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} ${@bb.utils.contains(
 
 RRECOMMENDS_${PN} = "binutils"
 
-do_compile_prepend_class-native () {
-	oe_runmake LLVM-tablegen-host
-	oe_runmake CLANG-tablegen-host
-}
-
 do_install_append_class-native () {
-	install -Dm 0755 ${B}/NATIVE/bin/clang-tblgen ${D}${bindir}/clang-tblgen
+	install -Dm 0755 ${B}/bin/clang-tblgen ${D}${bindir}/clang-tblgen
 	for f in `find ${D}${bindir} -executable -type f -not -type l`; do
 		test -n "`file $f|grep -i ELF`" && ${STRIP} $f
 		echo "stripped $f"
Signature · 1 line
2.8.1