diff options
Diffstat (limited to 'meta-oe/recipes-devtools/libtoml11')
| -rw-r--r-- | meta-oe/recipes-devtools/libtoml11/files/0001-Remove-more-whitespaces-after-operator.patch | 34 | ||||
| -rw-r--r-- | meta-oe/recipes-devtools/libtoml11/libtoml11_4.4.0.bb | 3 |
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 @@ | |||
| 1 | From 6af7de3d5eaae59c53c42aab8eca1e1e9a365da5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Steffen Winter <steffen.winter@proton.me> | ||
| 3 | Date: Thu, 25 Dec 2025 20:48:02 +0100 | ||
| 4 | Subject: [PATCH] Remove more whitespaces after operator"" | ||
| 5 | |||
| 6 | Upstream-Status: Submitted [https://github.com/ToruNiina/toml11/pull/306] | ||
| 7 | Signed-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" | |||
| 16 | SRC_URI = "\ | 16 | SRC_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 | " |
| 21 | SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286" | 22 | SRCREV = "be08ba2be2a964edcdb3d3e3ea8d100abc26f286" |
| 22 | 23 | ||
| 23 | inherit cmake ptest | 24 | inherit cmake ptest |
| 24 | 25 | ||
| 26 | CXXFLAGS:append:toolchain-clang = " -Wno-error=c2y-extensions" | ||
| 27 | |||
| 25 | EXTRA_OECMAKE += "-DTOML11_PRECOMPILE=ON \ | 28 | EXTRA_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 | " |
