diff options
| author | Zachary Turner <zturner@google.com> | 2015-02-25 20:42:19 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2015-02-25 20:42:19 +0000 |
| commit | 66bc9080d6d5ef4904f25d70c374a3dc2c218c9f (patch) | |
| tree | 48d56e7484fd2eddae1c641a71e58d3134d6e1b0 /llvm/cmake/modules/HandleLLVMOptions.cmake | |
| parent | 4a2ceea193c55ffb37879b6e07c843cef8299b3d (diff) | |
| download | bcm5719-llvm-66bc9080d6d5ef4904f25d70c374a3dc2c218c9f.tar.gz bcm5719-llvm-66bc9080d6d5ef4904f25d70c374a3dc2c218c9f.zip | |
[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.
llvm-svn: 230539
Diffstat (limited to 'llvm/cmake/modules/HandleLLVMOptions.cmake')
| -rw-r--r-- | llvm/cmake/modules/HandleLLVMOptions.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake index 14fda9284c9..fdc4ea0b4ac 100644 --- a/llvm/cmake/modules/HandleLLVMOptions.cmake +++ b/llvm/cmake/modules/HandleLLVMOptions.cmake @@ -25,6 +25,7 @@ if(NOT LLVM_FORCE_USE_OLD_TOOLCHAIN) if (CMAKE_CXX_SIMULATE_VERSION VERSION_LESS 18.0) message(FATAL_ERROR "Host Clang must have at least -fms-compatibility-version=18.0") endif() + set(CLANG_CL 1) elseif(NOT LLVM_ENABLE_LIBCXX) # Otherwise, test that we aren't using too old of a version of libstdc++ # with the Clang compiler. This is tricky as there is no real way to |

