[llvm] r205120 - Support: normalize the default triple on Unix

Saleem Abdulrasool compnerd at compnerd.org
Sat Mar 29 20:22:37 PDT 2014


Author: compnerd
Date: Sat Mar 29 22:22:37 2014
New Revision: 205120

URL: http://llvm.org/viewvc/llvm-project?rev=205120&view=rev
Log:
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.

Modified:
    llvm/trunk/lib/Support/Unix/Host.inc

Modified: llvm/trunk/lib/Support/Unix/Host.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Host.inc?rev=205120&r1=205119&r2=205120&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Host.inc (original)
+++ llvm/trunk/lib/Support/Unix/Host.inc Sat Mar 29 22:22:37 2014
@@ -59,5 +59,5 @@ std::string sys::getDefaultTargetTriple(
     Triple += getOSVersion();
   }
 
-  return Triple;
+  return Triple::normalize(Triple);
 }





More information about the llvm-commits mailing list