diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-01-24 11:12:30 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-01-25 09:13:09 -0800 |
| commit | 73ce3883fd2a46510462c7b53aaecc379ab1e369 (patch) | |
| tree | 8f2dc185b9c97e7802289c678875ca730cf4aa86 | |
| parent | 1bc0fc538146070dc9d9cefce8aa6e9649b4ffcc (diff) | |
| download | meta-openembedded-73ce3883fd2a46510462c7b53aaecc379ab1e369.tar.gz | |
spdlog: Update the external fmt patch
Complete the tweakme.h inclusion
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-support/spdlog/files/0001-Enable-use-of-external-fmt-library.patch | 76 |
1 files changed, 59 insertions, 17 deletions
diff --git a/meta-oe/recipes-support/spdlog/files/0001-Enable-use-of-external-fmt-library.patch b/meta-oe/recipes-support/spdlog/files/0001-Enable-use-of-external-fmt-library.patch index b62b379a76..98c342fec4 100644 --- a/meta-oe/recipes-support/spdlog/files/0001-Enable-use-of-external-fmt-library.patch +++ b/meta-oe/recipes-support/spdlog/files/0001-Enable-use-of-external-fmt-library.patch | |||
| @@ -1,26 +1,68 @@ | |||
| 1 | From 23ce2fe30e7485d48e2864bdd8276119fbb8cbd1 Mon Sep 17 00:00:00 2001 | 1 | Author: Nilesh Patra <npatra974@gmail.com> |
| 2 | From: Philip Balister <philip@balister.org> | 2 | Description: Use external libfmt by default |
| 3 | Date: Thu, 3 Dec 2020 09:22:50 -0500 | 3 | Last-Changed: Sun, May, 14 2020 |
| 4 | Subject: [PATCH] Enable use of external fmt library. | 4 | Forwarded: not-needed |
| 5 | 5 | --- a/CMakeLists.txt | |
| 6 | Signed-off-by: Philip Balister <philip@balister.org> | 6 | +++ b/CMakeLists.txt |
| 7 | --- | 7 | @@ -87,7 +87,7 @@ option(SPDLOG_BUILD_WARNINGS "Enable com |
| 8 | include/spdlog/tweakme.h | 2 +- | 8 | |
| 9 | 1 file changed, 1 insertion(+), 1 deletion(-) | 9 | # install options |
| 10 | 10 | option(SPDLOG_INSTALL "Generate the install target" ${SPDLOG_MASTER_PROJECT}) | |
| 11 | diff --git a/include/spdlog/tweakme.h b/include/spdlog/tweakme.h | 11 | -option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" OFF) |
| 12 | index 244bc3b3..2594a6fe 100644 | 12 | +option(SPDLOG_FMT_EXTERNAL "Use external fmt library instead of bundled" ON) |
| 13 | option(SPDLOG_FMT_EXTERNAL_HO "Use external fmt header-only library instead of bundled" OFF) | ||
| 14 | option(SPDLOG_NO_EXCEPTIONS "Compile with -fno-exceptions. Call abort() on any spdlog exceptions" OFF) | ||
| 15 | |||
| 13 | --- a/include/spdlog/tweakme.h | 16 | --- a/include/spdlog/tweakme.h |
| 14 | +++ b/include/spdlog/tweakme.h | 17 | +++ b/include/spdlog/tweakme.h |
| 15 | @@ -63,7 +63,7 @@ | 18 | @@ -71,7 +71,7 @@ |
| 16 | // In this case spdlog will try to include <fmt/format.h> so set your -I flag | 19 | // In this case spdlog will try to include <fmt/format.h> so set your -I flag |
| 17 | // accordingly. | 20 | // accordingly. |
| 18 | // | 21 | // |
| 19 | -// #define SPDLOG_FMT_EXTERNAL | 22 | -// #define SPDLOG_FMT_EXTERNAL |
| 20 | +#define SPDLOG_FMT_EXTERNAL | 23 | +#define SPDLOG_FMT_EXTERNAL 1 |
| 21 | /////////////////////////////////////////////////////////////////////////////// | 24 | /////////////////////////////////////////////////////////////////////////////// |
| 22 | 25 | ||
| 23 | /////////////////////////////////////////////////////////////////////////////// | 26 | /////////////////////////////////////////////////////////////////////////////// |
| 24 | -- | 27 | --- a/include/spdlog/fmt/bin_to_hex.h |
| 25 | 2.28.0 | 28 | +++ b/include/spdlog/fmt/bin_to_hex.h |
| 26 | 29 | @@ -5,6 +5,7 @@ | |
| 30 | |||
| 31 | #pragma once | ||
| 32 | |||
| 33 | +#include <spdlog/tweakme.h> | ||
| 34 | #include <cctype> | ||
| 35 | #include <spdlog/common.h> | ||
| 36 | |||
| 37 | --- a/include/spdlog/fmt/fmt.h | ||
| 38 | +++ b/include/spdlog/fmt/fmt.h | ||
| 39 | @@ -4,7 +4,7 @@ | ||
| 40 | // | ||
| 41 | |||
| 42 | #pragma once | ||
| 43 | - | ||
| 44 | +#include <spdlog/tweakme.h> | ||
| 45 | // | ||
| 46 | // Include a bundled header-only copy of fmtlib or an external one. | ||
| 47 | // By default spdlog include its own copy. | ||
| 48 | --- a/include/spdlog/fmt/ostr.h | ||
| 49 | +++ b/include/spdlog/fmt/ostr.h | ||
| 50 | @@ -7,7 +7,7 @@ | ||
| 51 | // | ||
| 52 | // include bundled or external copy of fmtlib's ostream support | ||
| 53 | // | ||
| 54 | - | ||
| 55 | +#include <spdlog/tweakme.h> | ||
| 56 | #if !defined(SPDLOG_FMT_EXTERNAL) | ||
| 57 | # ifdef SPDLOG_HEADER_ONLY | ||
| 58 | # ifndef FMT_HEADER_ONLY | ||
| 59 | --- a/src/fmt.cpp | ||
| 60 | +++ b/src/fmt.cpp | ||
| 61 | @@ -6,6 +6,7 @@ | ||
| 62 | # error Please define SPDLOG_COMPILED_LIB to compile this file. | ||
| 63 | #endif | ||
| 64 | |||
| 65 | +#include <spdlog/tweakme.h> | ||
| 66 | #if !defined(SPDLOG_FMT_EXTERNAL) | ||
| 67 | # include <spdlog/fmt/bundled/format-inl.h> | ||
| 68 | |||
