diff mbox

[oe,meta-clang] clang: update for cmake changes in oe-core

Message ID 1493760195-11165-1-git-send-email-ross.burton@intel.com
State New
Headers show

Commit Message

Ross Burton May 2, 2017, 9:23 p.m. UTC
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.

Signed-off-by: Ross Burton <ross.burton@intel.com>

---
 recipes-devtools/clang/clang_git.bb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

-- 
2.8.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox

Patch

diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb
index 4f712e1..839fa15 100644
--- a/recipes-devtools/clang/clang_git.bb
+++ b/recipes-devtools/clang/clang_git.bb
@@ -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"