[PATCH] [libcxxabi] Build both static and shared versions of libc++abi by default.

Eric Fiselier eric at efcs.ca
Mon Mar 2 12:15:02 PST 2015


Hi compnerd, mclow.lists, danalbert, jroelofs,

This patch builds both static and shared versions of libc++abi by default. It adds/repurposes the following cmake options:
* `LIBCXXABI_ENABLE_SHARED`: Enable/disable building the shared library. (Previously using `OFF` would build the static library instead)
* `LIBCXXABI_ENABLE_STATIC`: Enable/disable building the static library.

This patch also re-purposes the CMake target `cxxabi` to be a meta-target for `cxxabi_shared` and `cxxabi_static`. This could potentially break other builds that depend on `cxxabi` being a library target. We will need to apply a patch to libc++'s CMake before committing this change. 

Running the tests is still only supported when the shared version is built. Support for running the tests against the static library will come in another patch.

http://reviews.llvm.org/D8013

Files:
  CMakeLists.txt
  src/CMakeLists.txt
  test/CMakeLists.txt

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8013.21026.patch
Type: text/x-patch
Size: 4322 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150302/a10cf031/attachment.bin>


More information about the cfe-commits mailing list