clang: update for cmake changes in oe-core
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.
Signed-off-by Ross Burton <[email protected]>
--- recipes-devtools/clang/clang_git.bb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
recipes-devtools/clang/clang_git.bb +1 -6
@@ -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