libc++ fails to build with
LIBCXX_HAS_MUSL_LIBC=ON
complaining about static declarations. Removing it helps.
Differential D58961
Remove `static` from declarations in support/musl/xlocale.h MaskRay on Mar 5 2019, 4:41 AM. Authored by
Details
Diff Detail
Event TimelineComment Actions Hello, Sorry for the delay. Here they are: In file included from /mnt/build/test/llvm/projects/libcxx/include/__locale:39, from /mnt/build/test/llvm/projects/libcxx/include/ios:216, from /mnt/build/test/llvm/projects/libcxx/include/ostream:138, from /mnt/build/test/llvm/projects/libcxx/include/istream:163, from /mnt/build/test/llvm/projects/libcxx/include/random:1646, from /mnt/build/test/llvm/projects/libcxx/src/algorithm.cpp:11: /mnt/build/test/llvm/projects/libcxx/include/support/musl/xlocale.h:28:25: error: ‘long long int strtoll_l(const char*, char**, int, locale_t)’ was declared ‘extern’ and later ‘static’ [-fpermissive] static inline long long strtoll_l(const char *nptr, char **endptr, int base, and so on for each declaration. |