[PATCH] D13739: [libcxx] Make libc++.so a linker script by default on most platforms.

Eric Fiselier via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 13:26:25 PDT 2015


EricWF created this revision.
EricWF added reviewers: mclow.lists, jroelofs, danalbert, compnerd.
EricWF added subscribers: cfe-commits, cbergstrom, rengolin, emaste.

This patch turns on `LIBCXX_ENABLE_ABI_LINKER_SCRIPT` by default whenever `LLVM_HAVE_LINK_VERSION_SCRIPT` is ON. This turns out to be whenever:

1. WIN32 is not defined.
2 UNIX is defined.
3. APPLE is not defined.

While `LLVM_HAVE_LINK_VERSION_SCRIPT` is meant to reflect exactly what we are asking I think it's close enough.

After committing this patch Linux users will no longer have to use "-lc++abi" explicitly!




http://reviews.llvm.org/D13739

Files:
  CMakeLists.txt
  cmake/Modules/HandleOutOfTreeLLVM.cmake
  docs/BuildingLibcxx.rst
  docs/UsingLibcxx.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13739.37384.patch
Type: text/x-patch
Size: 3690 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20151014/3604c2c4/attachment.bin>


More information about the cfe-commits mailing list