Codechange: Compile fmt internals in a separate translation unit (#13527)

Instead of defining FMT_HEADER_ONLY to include fmt internals
in the headers included by all fmt-using translation units.
This commit is contained in:
Jonathan G Rennison
2025-02-11 19:11:50 +00:00
committed by GitHub
parent cf05b6c2f8
commit 23dc393822
8 changed files with 53 additions and 4 deletions

View File

@@ -298,9 +298,6 @@ char (&ArraySizeHelper(T (&array)[N]))[N];
# define GNU_TARGET(x)
#endif /* __GNUC__ || __clang__ */
/* For the FMT library we only want to use the headers, not link to some library. */
#define FMT_HEADER_ONLY
[[noreturn]] void NOT_REACHED(const std::source_location location = std::source_location::current());
[[noreturn]] void AssertFailedError(const char *expression, const std::source_location location = std::source_location::current());