summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/libtoml11
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-devtools/libtoml11')
-rw-r--r--meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch34
-rw-r--r--meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb3
2 files changed, 37 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch b/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch
new file mode 100644
index 0000000000..5bff81eaf6
--- /dev/null
+++ b/meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch
@@ -0,0 +1,34 @@
1From 6af7de3d5eaae59c53c42aab8eca1e1e9a365da5 Mon Sep 17 00:00:00 2001
2From: Steffen Winter <steffen.winter@proton.me>
3Date: Thu, 25 Dec 2025 20:48:02 +0100
4Subject: [PATCH] Remove more whitespaces after operator""
5
6Upstream-Status: Submitted [https://github.com/ToruNiina/toml11/pull/306]
7Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
8---
9 include/toml11/fwd/literal_fwd.hpp | 4 ++--
10 include/toml11/impl/literal_impl.hpp | 4 ++--
11 2 files changed, 4 insertions(+), 4 deletions(-)
12
13--- a/include/toml11/fwd/literal_fwd.hpp
14+++ b/include/toml11/fwd/literal_fwd.hpp
15@@ -24,7 +24,7 @@ inline namespace toml_literals
16 #if defined(TOML11_HAS_CHAR8_T)
17 // value of u8"" literal has been changed from char to char8_t and char8_t is
18 // NOT compatible to char
19-::toml::value operator"" _toml(const char8_t* str, std::size_t len);
20+::toml::value operator""_toml(const char8_t* str, std::size_t len);
21 #endif
22
23 } // toml_literals
24--- a/include/toml11/impl/literal_impl.hpp
25+++ b/include/toml11/impl/literal_impl.hpp
26@@ -146,7 +146,7 @@ operator""_toml(const char* str, std::si
27 // value of u8"" literal has been changed from char to char8_t and char8_t is
28 // NOT compatible to char
29 TOML11_INLINE ::toml::value
30-operator"" _toml(const char8_t* str, std::size_t len)
31+operator""_toml(const char8_t* str, std::size_t len)
32 {
33 if(len == 0)
34 {
diff --git a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
index 7e097e4612..49f9840f06 100644
--- a/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
+++ b/meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb
@@ -16,12 +16,15 @@ PE = "1"
16SRC_URI = "\ 16SRC_URI = "\
17 gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main;tag=v${PV} \ 17 gitsm://github.com/ToruNiina/toml11.git;protocol=https;branch=main;tag=v${PV} \
18 file://0001-Remove-whitespace-in-operator.patch \ 18 file://0001-Remove-whitespace-in-operator.patch \
19 file://0001-Remove-more-whitespaces-after-operator.patch \
19 file://run-ptest \ 20 file://run-ptest \
20" 21"
21SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286" 22SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286"
22 23
23inherit cmake ptest 24inherit cmake ptest
24 25
26CXXFLAGS:append:toolchain-clang = " -Wno-error=c2y-extensions"
27
25EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \ 28EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \
26 -DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", "1", "ON", "OFF", d)} \ 29 -DTOML11_BUILD_TESTS=${@bb.utils.contains("PTEST_ENABLED", "1", "ON", "OFF", d)} \
27" 30"