summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-05-02 22:23:15 +0100
committerKhem Raj <raj.khem@gmail.com>2017-05-05 10:32:49 -0700
commit625f4efb211f33e69144cd3e1e65ca581151d201 (patch)
treec47eccae0a3e608fb033883bf8435ec941a91f81
parent0cb6aaa39d22c461c076b145cecf4d7e8dae2c7f (diff)
downloadmeta-clang-625f4efb211f33e69144cd3e1e65ca581151d201.tar.gz
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 <ross.burton@intel.com>
-rw-r--r--recipes-devtools/clang/clang_git.bb7
1 files changed, 1 insertions, 6 deletions
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(
112 112
113RRECOMMENDS_${PN} = "binutils" 113RRECOMMENDS_${PN} = "binutils"
114 114
115do_compile_prepend_class-native () {
116 oe_runmake LLVM-tablegen-host
117 oe_runmake CLANG-tablegen-host
118}
119
120do_install_append_class-native () { 115do_install_append_class-native () {
121 install -Dm 0755 ${B}/NATIVE/bin/clang-tblgen ${D}${bindir}/clang-tblgen 116 install -Dm 0755 ${B}/bin/clang-tblgen ${D}${bindir}/clang-tblgen
122 for f in `find ${D}${bindir} -executable -type f -not -type l`; do 117 for f in `find ${D}${bindir} -executable -type f -not -type l`; do
123 test -n "`file $f|grep -i ELF`" && ${STRIP} $f 118 test -n "`file $f|grep -i ELF`" && ${STRIP} $f
124 echo "stripped $f" 119 echo "stripped $f"