hanchenye-llvm-project/libcxxabi
Eric Fiselier 14dbeaadc1 [libcxxabi] Build both static and shared versions of libc++abi by default.
Summary:
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.


Reviewers: jroelofs, mclow.lists, danalbert, compnerd

Reviewed By: danalbert, compnerd

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D8013

llvm-svn: 231075
2015-03-03 15:59:09 +00:00
..
cmake unwind: use -fno-rtti -fno-exceptions -funwind-tables 2015-02-06 17:47:57 +00:00
include unwind: always export unw_local_addr_space 2015-02-13 19:04:48 +00:00
lib Add ability to set OPTIONS for compile 2013-09-09 23:53:08 +00:00
src [libcxxabi] Build both static and shared versions of libc++abi by default. 2015-03-03 15:59:09 +00:00
test [libcxxabi] Build both static and shared versions of libc++abi by default. 2015-03-03 15:59:09 +00:00
www [libcxxabi] Teach CMake better ways to find the libc++ source directory (and misc cleanup). 2015-01-22 20:00:06 +00:00
.arcconfig Add an .arcconfig for libc++abi. 2014-10-17 16:48:56 +00:00
.gitignore [libcxxabi] Teach CMake better ways to find the libc++ source directory (and misc cleanup). 2015-01-22 20:00:06 +00:00
CMakeLists.txt [libcxxabi] Build both static and shared versions of libc++abi by default. 2015-03-03 15:59:09 +00:00
CREDITS.TXT Adding ABI support for __cxa_throw_bad_array_new_length. 2014-09-11 17:26:43 +00:00
LICENSE.TXT Update the copyright credits -- Happy new year 2014! 2014-01-01 08:27:31 +00:00