diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-08-02 10:32:02 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2020-08-04 09:36:00 -0700 |
commit | 427b6cb4cdd03bf437f295952dcdda12213f157b (patch) | |
tree | fed887ef03b7db33f872ac454a1b50d9fd12fa9e | |
parent | ee95057b57f7a39fa8e2cc2c7b29dc45b743e44c (diff) | |
download | meta-clang-427b6cb4cdd03bf437f295952dcdda12213f157b.tar.gz |
libcxx: Default to compiler-rt when it is in PACKAGECONFIG
This ensures right C runtime is used as desired by user
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | recipes-devtools/clang/libcxx_git.bb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-devtools/clang/libcxx_git.bb b/recipes-devtools/clang/libcxx_git.bb index 789da5b..1dfcc69 100644 --- a/recipes-devtools/clang/libcxx_git.bb +++ b/recipes-devtools/clang/libcxx_git.bb | |||
@@ -24,7 +24,7 @@ DEPENDS += "ninja-native" | |||
24 | DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" | 24 | DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${TARGET_PREFIX}compilerlibs" |
25 | 25 | ||
26 | LIBCPLUSPLUS = "" | 26 | LIBCPLUSPLUS = "" |
27 | COMPILER_RT ?= "-rtlib=compiler-rt ${UNWINDLIB}" | 27 | COMPILER_RT ?= "${@bb.utils.contains("PACKAGECONFIG", "compiler-rt", "-rtlib=compiler-rt", "", d)} ${UNWINDLIB}" |
28 | UNWINDLIB ?= "${@bb.utils.contains("RUNTIME", "gnu", "--unwindlib=libgcc", "", d)}" | 28 | UNWINDLIB ?= "${@bb.utils.contains("RUNTIME", "gnu", "--unwindlib=libgcc", "", d)}" |
29 | 29 | ||
30 | INHIBIT_DEFAULT_DEPS = "1" | 30 | INHIBIT_DEFAULT_DEPS = "1" |