summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-09-24 22:19:13 -0700
committerKhem Raj <raj.khem@gmail.com>2020-09-25 09:13:42 -0700
commitea85ce74ede5ddea0b9e53a7624e0a4ca27b4660 (patch)
tree37bf4f81e9dff59f7f23518c3716cca9d325c46c
parentf3674366d692c1b0d165af0b2db6598c9e5424d8 (diff)
downloadmeta-clang-ea85ce74ede5ddea0b9e53a7624e0a4ca27b4660.tar.gz
clang: Create symlinks with cross compile tuples
This helps in running ptests e.g. perl which encodes the compiler during cross-compile and it is <cross-compile>-clang and not simply `clang` since these tests are configured and compiled on build host and run on target, its requied to have same names on target as well. Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--recipes-devtools/clang/clang_git.bb3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb
index 96cec4e..ccdee23 100644
--- a/recipes-devtools/clang/clang_git.bb
+++ b/recipes-devtools/clang/clang_git.bb
@@ -189,6 +189,9 @@ endif()\n" ${D}${libdir}/cmake/llvm/LLVMExports-release.cmake
189 lnr ${D}${nonarch_libdir}/clang ${D}${libdir}/clang 189 lnr ${D}${nonarch_libdir}/clang ${D}${libdir}/clang
190 rmdir --ignore-fail-on-non-empty ${D}${libdir} 190 rmdir --ignore-fail-on-non-empty ${D}${libdir}
191 fi 191 fi
192 for t in clang clang++ llvm-nm llvm-ar llvm-as llvm-ranlib llvm-strip; do
193 ln -sf $t ${D}${bindir}/${TARGET_PREFIX}$t
194 done
192} 195}
193 196
194do_install_append_class-native () { 197do_install_append_class-native () {