]> granicus.if.org Git - clang/commitdiff
clang-cl: Use 'pc' for the vendor field in the default triple
authorHans Wennborg <hans@hanshq.net>
Fri, 18 Sep 2015 17:11:50 +0000 (17:11 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 18 Sep 2015 17:11:50 +0000 (17:11 +0000)
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

lib/Driver/Driver.cpp

index 384d0276d1c9e6a66086ff2071af5aaaa74db829..af740fc5b4c75b3a1fc96163c850005f63216b67 100644 (file)
@@ -413,6 +413,7 @@ Compilation *Driver::BuildCompilation(ArrayRef<const char *> ArgList) {
     // clang-cl targets MSVC-style Win32.
     llvm::Triple T(DefaultTargetTriple);
     T.setOS(llvm::Triple::Win32);
+    T.setVendor(llvm::Triple::PC);
     T.setEnvironment(llvm::Triple::MSVC);
     DefaultTargetTriple = T.str();
   }