summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-config/llvm-config.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-03-29 01:08:53 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-03-29 01:08:53 +0000
commit37511ecea8e045a0db68d0f9ea1ca89b3143b83e (patch)
tree5fbac9010514e866152d9695d570dfce556dde76 /llvm/tools/llvm-config/llvm-config.cpp
parentec3bbf4933d70fd1c907f883acd45da4ab1f10ee (diff)
downloadbcm5719-llvm-37511ecea8e045a0db68d0f9ea1ca89b3143b83e.tar.gz
bcm5719-llvm-37511ecea8e045a0db68d0f9ea1ca89b3143b83e.zip
Windows: canonicalise the default windows triple
Canonicalise the default triple that is used on Windows. This should hopefully fix the MSVC buildbots. llvm-svn: 205070
Diffstat (limited to 'llvm/tools/llvm-config/llvm-config.cpp')
-rw-r--r--llvm/tools/llvm-config/llvm-config.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.cpp b/llvm/tools/llvm-config/llvm-config.cpp
index 8a42aa33cc1..ed1c8c3b2ae 100644
--- a/llvm/tools/llvm-config/llvm-config.cpp
+++ b/llvm/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") {
OpenPOWER on IntegriCloud