diff --git a/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest b/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
index 4f682c5eb2..64e157c6d0 100755
--- a/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
+++ b/meta-oe/recipes-devtools/tomlplusplus/files/run-ptest
@@ -1,9 +1,19 @@
 #!/bin/sh
 
+# The tests call std::locale(""), which libstdc++ on musl only accepts for "C"
+export LC_ALL=C
+
+# Set at build time for libcs where some tests cannot pass
+args=""
+
 cd tests
 for atest in tomlplusplus_* ; do
     rm -rf tests.log
-    ./${atest} > tests.log 2>&1
+    if [ "${atest}" = "tomlplusplus_tests" ] && [ -n "${args}" ]; then
+        ./${atest} "${args}" > tests.log 2>&1
+    else
+        ./${atest} > tests.log 2>&1
+    fi
     if [ $? = 0 ] ; then
         echo "PASS: ${atest}"
     else
diff --git a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
index 074c9b6f75..50544b57ac 100644
--- a/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
+++ b/meta-oe/recipes-devtools/tomlplusplus/tomlplusplus_git.bb
@@ -3,18 +3,19 @@ HOMEPAGE = "https://github.com/marzer/tomlplusplus"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=90960f22c10049c117d56ed2ee5ee167"
 
-SRC_URI = "git://github.com/marzer/tomlplusplus.git;protocol=https;branch=master \
+SRC_URI = "git://github.com/marzer/tomlplusplus.git;protocol=https;branch=master;tag=v${PV} \
            file://run-ptest \
 "
 
-PV = "3.4.0"
-SRCREV = "30172438cee64926dc41fdd9c11fb3ba5b2ba9de"
+PV = "3.5.1"
+SRCREV = "efd80e03356af65c7d4e61c56ffb326b34f8d0f4"
+UPSTREAM_CHECK_GITTAGREGEX = "^v(?P<pver>\d+(\.\d+)+)$"
 
 DEPENDS = "cmake-native"
 
 inherit meson ptest pkgconfig
 
-EXTRA_OEMESON += "-Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
+EXTRA_OEMESON += "-Dregenerate=false -Dbuild_lib=true -Dbuild_tests=${@bb.utils.contains("DISTRO_FEATURES", "ptest", "true", "false", d)} \
 "
 
 # See - https://github.com/marzer/tomlplusplus/issues/279
@@ -26,3 +27,9 @@ do_install_ptest () {
     cp ${B}/tests/tomlplusplus_odr_test ${D}${PTEST_PATH}/tests
     cp ${B}/tests/tomlplusplus_tests ${D}${PTEST_PATH}/tests
 }
+
+# musl's strtod() leaves floating-point exception flags set, which the
+# float round-trip test checks for
+do_install_ptest:append:libc-musl () {
+    sed -i -e 's|^args=""$|args="~round trips - floats"|' ${D}${PTEST_PATH}/run-ptest
+}
