For those of us that don't like rebuilding the whole damn thing every
time.
Will add support for tests with lit in a later patch.
This does not yet support building the unwinder in src/Unwind.
Differential D4359
[libcxxabi] Add a cmake build system. danalbert on Jul 1 2014, 4:09 PM. Authored by
Details
Diff Detail Event TimelineComment Actions If anyone could test this on msvc I'd appreciate it. My install appears no longer be sane. I'll hack at it more on later...
Comment Actions I don't really understand why (most of) compiler flags are set up in the root CMakeLists.txt, while the link flags are set up in src/CMakeLists.txt, but probably that's not a big deal. Thanks for working on this!
Comment Actions samsonov: I used libc++ as an example while setting this up, so some of the structural oddities may have originated there :) I believe the idea is that all the flags that get set up in the root are ones that would be true of anything built in the project (including tests), whereas the flags configured in src/ are specific to libc++abi.(so|a).
Comment Actions Fixed the issues with semicolon delimited lists for link_flags/compile_flags. Comment Actions Also, I feel that it will be good to detect for <stdexcept> and <typeinfo> headers to ensure that libcxx include path has been correctly specified.
Comment Actions It also depends on llvm-config to find lit.py and the standard llvm cmake includes.
|
Is there any reason that we have to rely on llvm-config when we are building a standalone version? I thought libcxxabi does not rely on LLVM (or clang) headers and libraries (except the libcxx headers which should be specified by -DLIBCXXABI_LIBCXX_INCLUDES.)