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) {
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
......
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