From bfd0129b9108331379ef25ff032159bdfc253194 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 4 Nov 2025 08:53:26 -1000 Subject: [PATCH] Improve build speed --- include/fmt/base.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index a6a50012..774f260d 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2755,7 +2755,9 @@ template struct fstring { static_assert(count<(is_view>::value && std::is_reference::value)...>() == 0, "passing views as lvalues is disallowed"); - if (FMT_USE_CONSTEVAL) parse_format_string(s, checker(s, arg_pack())); +#ifdef FMT_USE_CONSTEVAL + parse_format_string(s, checker(s, arg_pack())); +#endif #ifdef FMT_ENFORCE_COMPILE_STRING static_assert( FMT_USE_CONSTEVAL && sizeof(s) != 0,