summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
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
commitceec2cba64496805a07fa586ff51d13d090fdcdf (patch)
tree0410a73df14b461aa8e37676e20ea8dc8118f32d /llvm/lib/Support
parent986b14c5077a41875da3dd9afb56792bb4d88f25 (diff)
downloadbcm5719-llvm-ceec2cba64496805a07fa586ff51d13d090fdcdf.tar.gz
bcm5719-llvm-ceec2cba64496805a07fa586ff51d13d090fdcdf.zip
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. llvm-svn: 205120
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Unix/Host.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc
index 726e2fbcf05..c5d36ff8f9c 100644
--- a/llvm/lib/Support/Unix/Host.inc
+++ b/llvm/lib/Support/Unix/Host.inc
@@ -59,5 +59,5 @@ std::string sys::getDefaultTargetTriple() {
Triple += getOSVersion();
}
- return Triple;
+ return Triple::normalize(Triple);
}
OpenPOWER on IntegriCloud