diff mbox series

[meta-oe] tomlplusplus: Fix test failures with clang/libcxx

Message ID 20250808043744.1928097-1-raj.khem@gmail.com
State New
Headers show
Series [meta-oe] tomlplusplus: Fix test failures with clang/libcxx | expand

Commit Message

Khem Raj Aug. 8, 2025, 4:37 a.m. UTC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
index 4d77ee6096..1f434520a9 100644
--- a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
+++ b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
@@ -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