llvm.org GIT mirror llvm / c06afdc
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 Saleem Abdulrasool 5 years ago
2 changed file(s) with 3 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
1717 using namespace llvm;
1818
1919 std::string sys::getDefaultTargetTriple() {
20 return LLVM_DEFAULT_TARGET_TRIPLE;
20 return Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE);
2121 }
1919 #include "llvm/ADT/STLExtras.h"
2020 #include "llvm/ADT/StringMap.h"
2121 #include "llvm/ADT/StringRef.h"
22 #include "llvm/ADT/Triple.h"
2223 #include "llvm/ADT/Twine.h"
2324 #include "llvm/Config/config.h"
2425 #include "llvm/Config/llvm-config.h"
310311 } else if (Arg == "--targets-built") {
311312 OS << LLVM_TARGETS_BUILT << '\n';
312313 } else if (Arg == "--host-target") {
313 OS << LLVM_DEFAULT_TARGET_TRIPLE << '\n';
314 OS << Triple::normalize(LLVM_DEFAULT_TARGET_TRIPLE) << '\n';
314315 } else if (Arg == "--build-mode") {
315316 OS << build_mode << '\n';
316317 } else if (Arg == "--assertion-mode") {