[cfe-dev] Best way to detect libc++ at compile time?
reakinator at gmail.com
Thu Jul 19 19:19:16 PDT 2012
I am enabling libc++ in a library that was depending on boost for things
such as mutex, thread, shared_ptr, etc., and I have not yet found a way to
detect that we are compiling with the libc++ library unless I first include
a header from it. I can do this:
// framework config.h:
#if defined( _LIBCPP_VERSION )
but now every file that wanted to know if we are using libc++ has vector in
it. This include is used to determine which standard library we should use,
and many things depend on it. Is there a better solution, other than a -D
flag to clang?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev