Commit c797708f authored by Victor Zverovich's avatar Victor Zverovich

Workaround strlen being non-constexpr in ARM toolchain

parent 49b4c1e9
...@@ -213,7 +213,7 @@ FMT_CONSTEXPR size_t length(const Char *s) { ...@@ -213,7 +213,7 @@ FMT_CONSTEXPR size_t length(const Char *s) {
while (*s) ++s; while (*s) ++s;
return s - start; 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); } FMT_CONSTEXPR size_t length(const char *s) { return std::strlen(s); }
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment