[PATCH] D18174: Fix libcxx build on musl

Ben Craig via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 15 11:38:43 PDT 2016


bcraig added a comment.

If I understand it correctly, __GLIBC__ is defined in features.h, so this won't work.

I suspect that the build isn't broken.  You likely just need to define LIBCXX_HAS_MUSL_LIBC on your cmake line.  That will cause __config_site.in to #define _LIBCPP_HAS_MUSL_LIBC for you.


http://reviews.llvm.org/D18174





More information about the cfe-commits mailing list