[PATCH] D11308: [libcxx] Cleanup CMake configuration and integrate with LLVM

Eric Fiselier eric at efcs.ca
Fri Jul 17 13:06:55 PDT 2015


EricWF created this revision.
EricWF added reviewers: mclow.lists, danalbert, jroelofs.
EricWF added a subscriber: cfe-commits.

This patch contains the following changes:

1. Require that libc++ can find a LLVM source directory. This is done the same way as `libc++abi` currently does.
2. Cleanup ugly configuration code in CMakeLists.txt by using `add_flags`, `add_flags_if`, and `add_flags_if_supported` macros.

The goals for this patch are:

1. Help libc++ be more consistent with how LLVM handles CMake options (see PR23670 PR23671).
2. Make it easier to use sanitizers using the `LLVM_USE_SANITIZER` option.
3. Make libc++'s CMakeLists.txt file easier to understand and change.
4. Move towards allowing libc++ to create Sphinx documentation (see http://efcs.ca/libcxx-docs). 
5. Move towards allowing  libc++ to use other LLVM utilities such as `not` and `FileCheck`.

  

http://reviews.llvm.org/D11308

Files:
  CMakeLists.txt
  cmake/Modules/FindLLVM.cmake
  cmake/Modules/HandleLibCXXABI.cmake
  cmake/Modules/HandleLibcxxFlags.cmake
  cmake/config-ix.cmake
  lib/CMakeLists.txt
  test/CMakeLists.txt
  test/lit.site.cfg.in
  www/index.html

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11308.30022.patch
Type: text/x-patch
Size: 41296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150717/94c7ac19/attachment.bin>


More information about the cfe-commits mailing list