diff mbox series

[meta-oe,walnascar,20/21] tomlplusplus: Fix test failures with clang/libcxx

Message ID 20250927063216.1865627-21-ankur.tyagi85@gmail.com
State New
Headers show
Series Trying to keep recipes in the walnascar branch updated with useful fixes from the master branch. | expand

Commit Message

Ankur Tyagi Sept. 27, 2025, 6:32 a.m. UTC
From: Khem Raj <raj.khem@gmail.com>

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 63584aeba977af0a63f97b9902dc3429bdf1e738)
Signed-off-by: Ankur Tyagi <ankur.tyagi85@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 a6ec89a2ff..abe7ed84e2 100644
--- a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
+++ b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
@@ -18,6 +18,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