From b810df9acb6c3c45b1c1ae63a124c1232a58d79c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 3 Apr 2019 16:48:33 -0700 Subject: clang: Add compiler-rt and libcxx-dev to runtime deps When installing clang to target its important to get these dependencies along with other llvm runtime, so clang can work out of box Signed-off-by: Khem Raj --- recipes-devtools/clang/clang_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index 8298c81..a02d283 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb @@ -52,7 +52,7 @@ PACKAGECONFIG ??= "compiler-rt libcplusplus shared-libs ${@bb.utils.filter('DIST PACKAGECONFIG_class-native = "" PACKAGECONFIG_class-nativesdk = "thin-lto" -PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,libcxx" +PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,libcxx,compiler-rt" PACKAGECONFIG[libcplusplus] = "-DCLANG_DEFAULT_CXX_STDLIB=libc++,,libcxx" PACKAGECONFIG[thin-lto] = "-DLLVM_ENABLE_LTO=Thin -DLLVM_BINUTILS_INCDIR=${STAGING_INCDIR},,binutils," PACKAGECONFIG[full-lto] = "-DLLVM_ENABLE_LTO=Full -DLLVM_BINUTILS_INCDIR=${STAGING_INCDIR},,binutils," @@ -146,6 +146,7 @@ LLVM_TARGETS_TO_BUILD;LLVM_EXPERIMENTAL_TARGETS_TO_BUILD;\ " RRECOMMENDS_${PN} = "binutils" +RRECOMMENDS_${PN}_append_class-target = " libcxx-dev" do_compile() { ninja ${PARALLEL_MAKE} ${BOOTSTRAPSTAGE} -- cgit v1.2.3-54-g00ecf