Skip to contentSkip to conversation

tomlplusplus: Fix test failures with clang/libcxx

PATCH New Khem Raj 1 participant 1 message Aug 8, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 tomlplusplus: Fix test failures with clang/libcxx

---
 meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb +4 -0
index 4d77ee6096..1f434520a9 100644
@@ -17,6 +17,10 @@ inherit meson ptest pkgconfig
 EXTRA_OEMESON += "-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
 "
 
+# See - https://github.com/marzer/tomlplusplus/issues/279
+CXXFLAGS:append:toolchain-clang = " -stdlib=libstdc++"
+LDFLAGS:append:toolchain-clang = " -stdlib=libstdc++"
+
 do_install_ptest () {
     install -d ${D}${PTEST_PATH}/tests
     cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/tests