diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-09-27 21:20:49 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-09-27 22:58:59 -0700 |
commit | 826f7287ffb8ae87bd843ecfe4a21a661bb03294 (patch) | |
tree | 1fd87ca73122013f30a3825911610ff35c984715 /classes/clang.bbclass | |
parent | d236deda20383e66e303399d98544fbcc66155a9 (diff) | |
download | meta-clang-826f7287ffb8ae87bd843ecfe4a21a661bb03294.tar.gz |
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 <raj.khem@gmail.com>
Diffstat (limited to 'classes/clang.bbclass')
-rw-r--r-- | classes/clang.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index f78ded8..c717766 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -110,6 +110,7 @@ def clang_base_deps(d): | |||
110 | 110 | ||
111 | BASE_DEFAULT_DEPS:toolchain-clang:class-target = "${@clang_base_deps(d)}" | 111 | BASE_DEFAULT_DEPS:toolchain-clang:class-target = "${@clang_base_deps(d)}" |
112 | BASE_DEFAULT_DEPS:append:class-native:toolchain-clang:runtime-llvm = " libcxx-native compiler-rt-native" | 112 | BASE_DEFAULT_DEPS:append:class-native:toolchain-clang:runtime-llvm = " libcxx-native compiler-rt-native" |
113 | BASE_DEFAULT_DEPS:append:class-nativesdk:toolchain-clang:runtime-llvm = " clang-native nativesdk-libcxx nativesdk-compiler-rt" | ||
113 | 114 | ||
114 | cmake_do_generate_toolchain_file:append:toolchain-clang () { | 115 | cmake_do_generate_toolchain_file:append:toolchain-clang () { |
115 | cat >> ${WORKDIR}/toolchain.cmake <<EOF | 116 | cat >> ${WORKDIR}/toolchain.cmake <<EOF |