tomlplusplus: Fix test failures with clang/libcxx

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2025-08-07 21:37:13 -07:00
parent eea415cfbd
commit 63584aeba9
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -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