patch-r221503-default-target-triple.diff revision 269012
1This patch ensures the target triple that is passed during the compiler build is
2respected, instead of mangling it.
3
4Introduced here: http://svnweb.freebsd.org/changeset/base/221503
5
6Index: lib/Support/Unix/Host.inc
7===================================================================
8--- lib/Support/Unix/Host.inc
9+++ lib/Support/Unix/Host.inc
10@@ -26,6 +26,11 @@
11 
12 using namespace llvm;
13 
14+#ifdef __FreeBSD__
15+std::string sys::getDefaultTargetTriple() {
16+  return LLVM_DEFAULT_TARGET_TRIPLE;
17+}
18+#else // __FreeBSD__
19 static std::string getOSVersion() {
20   struct utsname info;
21 
22@@ -61,3 +66,4 @@ std::string sys::getDefaultTargetTriple() {
23 
24   return Triple;
25 }
26+#endif // __FreeBSD__
27