diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-05-26 11:37:31 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-09-08 09:08:54 -0700 |
commit | dc5f165fbcb0abc58d49ef4a24df8329f80dec1e (patch) | |
tree | b2d34f9b4a9721618efe96287dad27b1d8c5b680 | |
parent | 154a4444c65d9e2a42a0f05118b37e1a22774b9e (diff) | |
download | meta-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.bb | 6 |
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" | |||
8 | require clang.inc | 8 | require clang.inc |
9 | require common-source.inc | 9 | require common-source.inc |
10 | 10 | ||
11 | inherit cmake python3native | 11 | inherit cmake cmake-native python3native |
12 | 12 | ||
13 | PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("RUNTIME", "llvm", "unwind unwind-shared", "", d)}" | 13 | PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("RUNTIME", "llvm", "unwind unwind-shared", "", d)}" |
14 | PACKAGECONFIG_append_armv5 = " no-atomics" | 14 | PACKAGECONFIG_append_armv5 = " no-atomics" |
@@ -25,6 +25,8 @@ DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}li | |||
25 | LIBCPLUSPLUS = "" | 25 | LIBCPLUSPLUS = "" |
26 | COMPILER_RT ?= "-rtlib=compiler-rt" | 26 | COMPILER_RT ?= "-rtlib=compiler-rt" |
27 | 27 | ||
28 | CXXFLAGS += "-stdlib=libstdc++" | ||
29 | LDFLAGS += "-unwindlib=libgcc -stdlib=libstdc++" | ||
28 | INHIBIT_DEFAULT_DEPS = "1" | 30 | INHIBIT_DEFAULT_DEPS = "1" |
29 | 31 | ||
30 | LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da3953 \ | 32 | LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da3953 \ |
@@ -73,5 +75,7 @@ CXXFLAGS_append_armv5 = " -mfpu=vfp2" | |||
73 | 75 | ||
74 | ALLOW_EMPTY_${PN} = "1" | 76 | ALLOW_EMPTY_${PN} = "1" |
75 | 77 | ||
78 | PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}" | ||
79 | |||
76 | BBCLASSEXTEND = "native nativesdk" | 80 | BBCLASSEXTEND = "native nativesdk" |
77 | TOOLCHAIN = "clang" | 81 | TOOLCHAIN = "clang" |