From 826f7287ffb8ae87bd843ecfe4a21a661bb03294 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Mon, 27 Sep 2021 21:20:49 -0700 Subject: nativesdk-clang: Fix build when using RUNTIME = llvm We can not use nativesdk variants of libcxx and compiler-rt yet when compiling nativesdk-clang because, it will need this compiler to build them, so solve this catch-22, since we do not use the runtime built during compiler builds, use libgcc/libstdc++ to pass cmake tests during configure, this should be fine as it will be not needed for final builds where nativesdk-clang will be used, it can still default to llvm runtime on SDK host Signed-off-by: Khem Raj --- recipes-devtools/clang/clang_git.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'recipes-devtools/clang/clang_git.bb') diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index d0f7c48..fcb9885 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb @@ -305,6 +305,8 @@ SSTATE_SCAN_FILES:remove = "*-config" TOOLCHAIN = "clang" TOOLCHAIN:class-native = "gcc" TOOLCHAIN:class-nativesdk = "clang" +COMPILER_RT:class-nativesdk:toolchain-clang:runtime-llvm = "-rtlib=libgcc --unwindlib=libgcc" +LIBCPLUSPLUS:class-nativesdk:toolchain-clang:runtime-llvm = "-stdlib=libstdc++" SYSROOT_DIRS:append:class-target = " ${nonarch_libdir}" -- cgit v1.2.3-54-g00ecf