diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-29 01:08:53 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-03-29 01:08:53 +0000 |
commit | c06afdcb65acd3f1fb28ce6280fed3a2d0db764c (patch) | |
tree | 1d35200091cfd1e1a43247b4815bf4eb9f12523b /tools/llvm-config/llvm-config.cpp | |
parent | b3cb36026abd673d8ee13105647b678c3ba88b0e (diff) | |
download | llvm-c06afdcb65acd3f1fb28ce6280fed3a2d0db764c.tar.gz llvm-c06afdcb65acd3f1fb28ce6280fed3a2d0db764c.tar.bz2 llvm-c06afdcb65acd3f1fb28ce6280fed3a2d0db764c.tar.xz |
Windows: canonicalise the default windows triple
Canonicalise the default triple that is used on Windows. This should hopefully
fix the MSVC buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205070 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-config/llvm-config.cpp')
-rw-r--r-- | tools/llvm-config/llvm-config.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/llvm-config/llvm-config.cpp b/tools/llvm-config/llvm-config.cpp index 8a42aa33cc..ed1c8c3b2a 100644 --- a/tools/llvm-config/llvm-config.cpp +++ b/tools/llvm-config/llvm-config.cpp @@ -20,6 +20,7 @@ #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" +#include "llvm/ADT/Triple.h" #include "llvm/ADT/Twine.h" #include "llvm/Config/config.h" #include "llvm/Config/llvm-config.h" @@ -311,7 +312,7 @@ int main(int argc, char **argv) { } else if (Arg == "--targets-built") { OS << LLVM_TARGETS_BUILT << '\n'; } else if (Arg == "--host-target") { - OS << LLVM_DEFAULT_TARGET_TRIPLE << '\n'; + OS << Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE) << '\n'; } else if (Arg == "--build-mode") { OS << build_mode << '\n'; } else if (Arg == "--assertion-mode") { |