diff options
author | Khem Raj <raj.khem@gmail.com> | 2019-10-02 18:42:00 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-10-02 23:36:21 -0700 |
commit | 6b552ae7442252b07abf41680696a904fea87ece (patch) | |
tree | d5c78127456e8f3f785171fe37ac40b7bd741cae /recipes-devtools | |
parent | ee835abcc97849544a01ea5b50bb090b68c7e9f8 (diff) | |
download | meta-clang-6b552ae7442252b07abf41680696a904fea87ece.tar.gz |
libcxx: Add packageconfig for compiler-rt use
This helps in disabling compiler-rt e.g. on risc-v if we need to enable
exceptions then we need to use libgcc_s, since llvm-libunwind is not yet
ported to risc-v
For ppc, enable compiler-rt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools')
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index b1fb023..bf6c70a 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -10,15 +10,15 @@ require common-source.inc | |||
10 | 10 | ||
11 | inherit cmake pythonnative | 11 | inherit cmake pythonnative |
12 | 12 | ||
13 | PACKAGECONFIG ??= "unwind exceptions" | 13 | PACKAGECONFIG ??= "compiler-rt unwind exceptions" |
14 | PACKAGECONFIG_powerpc = "" | 14 | PACKAGECONFIG_riscv32 = "exceptions" |
15 | PACKAGECONFIG_riscv32 = "" | 15 | PACKAGECONFIG_riscv64 = "exceptions" |
16 | PACKAGECONFIG_riscv64 = "" | ||
17 | PACKAGECONFIG_append_armv5 = " no-atomics" | 16 | PACKAGECONFIG_append_armv5 = " no-atomics" |
18 | 17 | ||
19 | PACKAGECONFIG[unwind] = "-DLIBCXXABI_USE_LLVM_UNWINDER=ON,-DLIBCXXABI_USE_LLVM_UNWINDER=OFF,llvm-libunwind" | 18 | PACKAGECONFIG[unwind] = "-DLIBCXXABI_USE_LLVM_UNWINDER=ON,-DLIBCXXABI_USE_LLVM_UNWINDER=OFF,llvm-libunwind" |
20 | PACKAGECONFIG[exceptions] = "-DLIBCXXABI_ENABLE_EXCEPTIONS=ON -DDLIBCXX_ENABLE_EXCEPTIONS=ON,-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF -DLIBCXX_ENABLE_EXCEPTIONS=OFF -DCMAKE_REQUIRED_FLAGS='-fno-exceptions'," | 19 | PACKAGECONFIG[exceptions] = "-DLIBCXXABI_ENABLE_EXCEPTIONS=ON -DDLIBCXX_ENABLE_EXCEPTIONS=ON,-DLIBCXXABI_ENABLE_EXCEPTIONS=OFF -DLIBCXX_ENABLE_EXCEPTIONS=OFF -DCMAKE_REQUIRED_FLAGS='-fno-exceptions'," |
21 | PACKAGECONFIG[no-atomics] = "-D_LIBCXXABI_HAS_ATOMIC_BUILTINS=OFF -DCMAKE_SHARED_LINKER_FLAGS='-latomic',," | 20 | PACKAGECONFIG[no-atomics] = "-D_LIBCXXABI_HAS_ATOMIC_BUILTINS=OFF -DCMAKE_SHARED_LINKER_FLAGS='-latomic',," |
21 | PACKAGECONFIG[compiler-rt] = "-DLIBCXXABI_USE_COMPILER_RT=ON -DLIBCXX_USE_COMPILER_RT=ON,-DLIBCXXABI_USE_COMPILER_RT=OFF -DLIBCXX_USE_COMPILER_RT=OFF,compiler-rt" | ||
22 | 22 | ||
23 | DEPENDS += "ninja-native" | 23 | DEPENDS += "ninja-native" |
24 | DEPENDS_append_class-target = " compiler-rt clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" | 24 | DEPENDS_append_class-target = " compiler-rt clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" |