[cfe-dev] Trying to build libcxx/libcxxabi on Linux 64 bit

Matthew Dempsky matthew at dempsky.org
Mon Jun 24 08:29:40 PDT 2013


On Mon, Jun 24, 2013 at 3:12 AM, Shriramana Sharma <samjnaa at gmail.com>wrote:

> I have now successfully compiled and linked libcxx against all three
> of libsupcxx, libcxxabi and libcxxrt. Any suggestions on which one I
> should actually use with clang? I seem to have read somewhere that
> clang is setup to libsupcxx by default for compatibility with GCC or
> something like that? So would it be preferable to use the version
> built against libsupcxx?
>

Interfacewise, libsupc++, libc++abi, and libcxxrt are all equivalent (or
should be).

License-wise, libc++abi and libcxxrt are BSD-like, while libsupc++ is GPL
with runtime exception.

libcxxrt is slightly easier to bootstrap because it's self-contained C/C++
code depending only on the C standard library, whereas libc++abi is a bit
funny because it in turn depends on some C++ library headers.

libcxxrt is smaller than libc++abi, but libc++abi's symbol demangler is
more spec compliant than libcxxrt's.  (In fairness, libcxxrt's demangler is
mostly taken from libelftc, and the libcxxrt developers intend to
improve/replace it.)

Both libc++abi and libcxxrt's developers have been very responsive to
reported issues.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130624/2f796a3a/attachment.html>


More information about the cfe-dev mailing list