summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2021-05-26 11:37:31 -0700
committerKhem Raj <raj.khem@gmail.com>2023-09-08 09:08:54 -0700
commitdc5f165fbcb0abc58d49ef4a24df8329f80dec1e (patch)
treeb2d34f9b4a9721618efe96287dad27b1d8c5b680
parent154a4444c65d9e2a42a0f05118b37e1a22774b9e (diff)
downloadmeta-clang-dc5f165fbcb0abc58d49ef4a24df8329f80dec1e.tar.gz
libcxx: Build undwinder when RUNTIME = "llvm"
ensure that libcxx can be built when RUNTIME = "llvm" as it might need to pass some cmake compiler tests Signed-off-by: Khem Raj <raj.khem@gmail.com> (cherry picked from commit a0a318157ca0555b0d6e20028dcb7e3e3f3c08c6)
-rw-r--r--recipes-devtools/clang/libcxx_git.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb
index d19839d..c179006 100644
--- a/recipes-devtools/clang/libcxx_git.bb
+++ b/recipes-devtools/clang/libcxx_git.bb
@@ -8,7 +8,7 @@ SECTION = "base"
8require clang.inc 8require clang.inc
9require common-source.inc 9require common-source.inc
10 10
11inherit cmake python3native 11inherit cmake cmake-native python3native
12 12
13PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("RUNTIME", "llvm", "unwind unwind-shared", "", d)}" 13PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("RUNTIME", "llvm", "unwind unwind-shared", "", d)}"
14PACKAGECONFIG_append_armv5 = " no-atomics" 14PACKAGECONFIG_append_armv5 = " no-atomics"
@@ -25,6 +25,8 @@ DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}li
25LIBCPLUSPLUS = "" 25LIBCPLUSPLUS = ""
26COMPILER_RT ?= "-rtlib=compiler-rt" 26COMPILER_RT ?= "-rtlib=compiler-rt"
27 27
28CXXFLAGS += "-stdlib=libstdc++"
29LDFLAGS += "-unwindlib=libgcc -stdlib=libstdc++"
28INHIBIT_DEFAULT_DEPS = "1" 30INHIBIT_DEFAULT_DEPS = "1"
29 31
30LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da3953 \ 32LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da3953 \
@@ -73,5 +75,7 @@ CXXFLAGS_append_armv5 = " -mfpu=vfp2"
73 75
74ALLOW_EMPTY_${PN} = "1" 76ALLOW_EMPTY_${PN} = "1"
75 77
78PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}"
79
76BBCLASSEXTEND = "native nativesdk" 80BBCLASSEXTEND = "native nativesdk"
77TOOLCHAIN = "clang" 81TOOLCHAIN = "clang"