[CMake] Fix the clang-cl self host build.
authorZachary Turner <zturner@google.com>
Wed, 25 Feb 2015 20:42:19 +0000 (20:42 +0000)
committerZachary Turner <zturner@google.com>
Wed, 25 Feb 2015 20:42:19 +0000 (20:42 +0000)
commit814efef67f2ee0245efce0cbfa52e70ca8498ba6
tree0874cd1b965ba20b4084df173f8166cca075966e
parent88c74bffbff520d8be55875cf0bbbb8899a8933a
[CMake] Fix the clang-cl self host build.

This allows clang-cl to self-host cleanly with no magic setup
steps required.

After this patch, all you have to do is set CC=CXX=clang-cl and
run cmake -G Ninja.

These changes only exist to support C++ features which are
unsupported in clang-cl, so regardless of whether the user
specifies they want to use them, we still have to disable them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230539 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
cmake/modules/HandleLLVMOptions.cmake