Skip to content
Snippets Groups Projects
Commit 0cc61f8e authored by Hans Wennborg's avatar Hans Wennborg
Browse files

clang-cl: Use 'pc' for the vendor field in the default triple

Leaving it unset can make the triple look confusing, especially
when using -m32 or -m64.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@248005 91177308-0d34-0410-b5e6-96231b3b80d8
parent 1755c870
No related branches found
No related tags found
No related merge requests found
...@@ -413,6 +413,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) { ...@@ -413,6 +413,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
// clang-cl targets MSVC-style Win32. // clang-cl targets MSVC-style Win32.
llvm::Triple T(DefaultTargetTriple); llvm::Triple T(DefaultTargetTriple);
T.setOS(llvm::Triple::Win32); T.setOS(llvm::Triple::Win32);
T.setVendor(llvm::Triple::PC);
T.setEnvironment(llvm::Triple::MSVC); T.setEnvironment(llvm::Triple::MSVC);
DefaultTargetTriple = T.str(); DefaultTargetTriple = T.str();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment