mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
VS: Update support for LLVM-vs* toolsets from LLVM 5.0
Revert commit v3.7.0-rc1~25^2 (VS: Recognize VS/LLVM toolset names as Clang, 2016-09-28). Since at least LLVM 5.0 the VS integration of the LLVM toolchain now mimics cl and accepts MSVC-style command-line arguments (unlike Microsoft Clang/C2). Fixes: #17193, #17235
This commit is contained in:
committed by
Brad King
parent
d4f58a9cd8
commit
8a4755ca57
@@ -2471,8 +2471,7 @@ void cmVisualStudio10TargetGenerator::WriteClOptions(
|
||||
}
|
||||
|
||||
if (this->MSTools) {
|
||||
cmsys::RegularExpression clangToolset(
|
||||
"(v[0-9]+_clang_.*|LLVM-vs[0-9]+.*)");
|
||||
cmsys::RegularExpression clangToolset("v[0-9]+_clang_.*");
|
||||
const char* toolset = this->GlobalGenerator->GetPlatformToolset();
|
||||
if (toolset && clangToolset.find(toolset)) {
|
||||
this->WriteString("<ObjectFileName>"
|
||||
|
||||
Reference in New Issue
Block a user