[PATCH] D29063: [libcxx] Never use <cassert> within libc++

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 23 20:36:34 PST 2017


EricWF added inline comments.


================
Comment at: include/__config:827
 #   endif
+# if !defined(_LIBCPP_BUILDING_LIBRARY)
 #   define _LIBCPP_EXTERN_TEMPLATE(...)
----------------
mclow.lists wrote:
> Does this belong here?
> 
Yeah, so `-DLIBCXX_ENABLE_ASSERTIONS=ON` now define `-D_LIBCPP_DEBUG=0` during the build. This suppresses `std::strings` extern template declarations and changes the export lists of `libc++.dylib`. This change ensures that enabling debug mode during the build doesn't do that.


https://reviews.llvm.org/D29063





More information about the cfe-commits mailing list