Skip to content

Commit

Permalink
libcxx: Build undwinder when RUNTIME = "llvm"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kraj committed Jun 8, 2021
1 parent f4bb299 commit a0a3181
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes-devtools/clang/libcxx_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SECTION = "base"
require clang.inc
require common-source.inc

inherit cmake python3native
inherit cmake cmake-native python3native

PACKAGECONFIG ??= "compiler-rt exceptions ${@bb.utils.contains("RUNTIME", "llvm", "unwind unwind-shared", "", d)}"
PACKAGECONFIG_append_armv5 = " no-atomics"
Expand All @@ -25,6 +25,8 @@ DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}li
LIBCPLUSPLUS = ""
COMPILER_RT ?= "-rtlib=compiler-rt"

CXXFLAGS += "-stdlib=libstdc++"
LDFLAGS += "-unwindlib=libgcc -stdlib=libstdc++"
INHIBIT_DEFAULT_DEPS = "1"

LIC_FILES_CHKSUM = "file://libcxx/LICENSE.TXT;md5=55d89dd7eec8d3b4204b680e27da3953 \
Expand Down Expand Up @@ -66,5 +68,7 @@ CXXFLAGS_append_armv5 = " -mfpu=vfp2"

ALLOW_EMPTY_${PN} = "1"

PROVIDES += "${@bb.utils.contains("RUNTIME", "llvm", "libunwind", "", d)}"

BBCLASSEXTEND = "native nativesdk"
TOOLCHAIN = "clang"

0 comments on commit a0a3181

Please sign in to comment.