forked from OSchip/llvm-project
clang-cl wants MSVC-style win32
This should fix the clang-cl tests after the Windows target triple canonicalization (r204978) llvm-svn: 204985
This commit is contained in:
parent
200fce4208
commit
73609a0fb3
|
@ -335,9 +335,11 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
|
|||
// FIXME: DefaultTargetTriple is used by the target-prefixed calls to as/ld
|
||||
// and getToolChain is const.
|
||||
if (IsCLMode()) {
|
||||
// clang-cl targets Win32.
|
||||
// clang-cl targets MSVC-style Win32.
|
||||
llvm::Triple T(DefaultTargetTriple);
|
||||
T.setOSName(llvm::Triple::getOSTypeName(llvm::Triple::Win32));
|
||||
T.setEnvironmentName(llvm::Triple::getEnvironmentTypeName(
|
||||
llvm::Triple::MSVC));
|
||||
DefaultTargetTriple = T.str();
|
||||
}
|
||||
if (const Arg *A = Args->getLastArg(options::OPT_target))
|
||||
|
|
Loading…
Reference in New Issue