Workaround strlen being non-constexpr in ARM toolchain

This commit is contained in:
Victor Zverovich 2018-10-03 09:14:45 -07:00
parent 49b4c1e9db
commit c797708fcc

View File

@ -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