[CMake] Get libcxx building under LLVM/runtimes
authorChris Bieneman <beanz@apple.com>
Thu, 18 Aug 2016 21:31:51 +0000 (21:31 +0000)
committerChris Bieneman <beanz@apple.com>
Thu, 18 Aug 2016 21:31:51 +0000 (21:31 +0000)
commit12b134bd4b233c0a03e98f01022c151ac23658d5
tree98cbc4d05a9fc663e9f010d57c8ba9bea5d73fb1
parent98cd99dfc671b78ff6d840d474ac9575ad3ea68b
[CMake] Get libcxx building under LLVM/runtimes

Summary:
The new LLVM runtimes build directory requires some basic conventions across the runtime projects. These changes make libcxx build under the runtimes subdirectory. The general idea of the changes is that the runtimes subdirectory requires some conventions to be consistent across runtime projects.

I expect to have a few more small patches that build on this to tie up check targets and other things useful in development workflows.

Summary of changes in this patch:

* Renamed variable LLVM_CONFIG -> LLVM_CONFIG_PATH
* Renamed variable LIBCXX_BUILT_STANDALONE -> LIBCXX_STANDALONE_BUILD
* Add an include of AddLLVM in the tests subdirectory for add_lit_testsuite.

Reviewers: EricWF

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D23696

llvm-svn: 279151
libcxx/CMakeLists.txt
libcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
libcxx/test/CMakeLists.txt