mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 17:41:11 +00:00
Workaround strlen being non-constexpr in ARM toolchain
This commit is contained in:
parent
49b4c1e9db
commit
c797708fcc
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user