From c797708fcc0c0aa623acc68912b1b49d3337f2fc Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 3 Oct 2018 09:14:45 -0700 Subject: [PATCH] Workaround strlen being non-constexpr in ARM toolchain --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 181001b5..ed581830 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -213,7 +213,7 @@ FMT_CONSTEXPR size_t length(const Char *s) { while (*s) ++s; return s - start; } -#if FMT_GCC_VERSION +#if FMT_GCC_VERSION && !defined(__arm__) FMT_CONSTEXPR size_t length(const char *s) { return std::strlen(s); } #endif