[CMake] Move -stdlib=libc++ handling into its own file.
authorJordan Rose <jordan_rose@apple.com>
Wed, 5 Feb 2014 00:02:37 +0000 (00:02 +0000)
committerJordan Rose <jordan_rose@apple.com>
Wed, 5 Feb 2014 00:02:37 +0000 (00:02 +0000)
commit1b7969eee250d4e3d12666a909971dd26adcbd77
tree2752ac4fc39930bccad3195a1852f34ea2da82a9
parent7e369ff2e564495211e9cc3d6224057c804621fe
[CMake] Move -stdlib=libc++ handling into its own file.

r200744 moved this into cmake/config-ix.cmake, so that it would happen very
early in the build process. However, standalone builds of Clang and other
external projects never include this file (which is correct).

Now, -stdlib=libc++ and the LLVM_COMPILER_IS_GCC_COMPATIBLE option are
both set in a new include file, HandleLLVMStdlib, which is included by
both config-ix.cmake and HandleLLVMOptions.cmake. This preserves existing
behavior for projects relying on HandleLLVMOptions and still does the
right thing for builds of LLVM itself.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200811 91177308-0d34-0410-b5e6-96231b3b80d8
CMakeLists.txt
cmake/config-ix.cmake
cmake/modules/HandleLLVMOptions.cmake
cmake/modules/HandleLLVMStdlib.cmake [new file with mode: 0644]