From ceec2cba64496805a07fa586ff51d13d090fdcdf Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 30 Mar 2014 03:22:37 +0000 Subject: [PATCH] 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 --- llvm/lib/Support/Unix/Host.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Host.inc b/llvm/lib/Support/Unix/Host.inc index 726e2fbcf056..c5d36ff8f9ce 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); }