summaryrefslogtreecommitdiff
path: root/lib/Support/Unix
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-03-30 03:22:37 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-03-30 03:22:37 +0000
commit4a9804a938cb831598bbaefd2c7359cc39998e01 (patch)
tree462a6dacf7b3958d6104940d1bc37440ca097b07 /lib/Support/Unix
parent6c449e8fa6fbef4d3b98a1546754c90efebd1a00 (diff)
downloadllvm-4a9804a938cb831598bbaefd2c7359cc39998e01.tar.gz
llvm-4a9804a938cb831598bbaefd2c7359cc39998e01.tar.bz2
llvm-4a9804a938cb831598bbaefd2c7359cc39998e01.tar.xz
Support: normalize the default triple on Unix
This will fix cross-compiling buildbots (e.g. cygwin). This is in the same vein as SVN r205070. Apply this to fix the cross-compiling scenario, even though the preferred solution is to update the build system to normalize the embedded triple rather than perform this at runtime every time. This is meant to tide us over until that approach is fleshed out and applied. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205120 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix')
-rw-r--r--lib/Support/Unix/Host.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
index 726e2fbcf0..c5d36ff8f9 100644
--- a/lib/Support/Unix/Host.inc
+++ b/lib/Support/Unix/Host.inc
@@ -59,5 +59,5 @@ std::string sys::getDefaultTargetTriple() {
Triple += getOSVersion();
}
- return Triple;
+ return Triple::normalize(Triple);
}