Skip to contentSkip to conversation

libcxx: Provide libunwind based on TC_CXX_RUNTIME

PATCH New Khem Raj 1 participant 1 message Jul 30, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libcxx: Provide libunwind based on TC_CXX_RUNTIME

When TC_CXX_RUNTIME is set to be 'llvm' distro wants to use llvm provided runtime elements therefore provide libunwind when TC_CXX_RUNTIME = "llvm"

---
 meta/recipes-devtools/clang/libcxx_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-devtools/clang/libcxx_git.bb +1 -1
index f54bc364d88..05066d4ff16 100644
@@ -101,7 +101,7 @@ CXXFLAGS:append:armv5 = " -mfpu=vfp2"
 
 ALLOW_EMPTY:${PN} = "1"
 
-PROVIDES:append:runtime-llvm = " libunwind"
+PROVIDES:append = " ${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "libunwind", "false", d)}"
 
 do_install:append() {
     if ${@bb.utils.contains("TC_CXX_RUNTIME", "llvm", "true", "false", d)}