2014-03-18 22:07:45 +00:00
|
|
|
This patch ensures the target triple that is passed during the compiler build is
|
|
|
|
respected, instead of mangling it.
|
|
|
|
|
2014-05-24 22:27:31 +00:00
|
|
|
Introduced here: http://svnweb.freebsd.org/changeset/base/221503
|
2014-03-18 22:07:45 +00:00
|
|
|
|
|
|
|
Index: lib/Support/Unix/Host.inc
|
|
|
|
===================================================================
|
|
|
|
--- lib/Support/Unix/Host.inc
|
|
|
|
+++ lib/Support/Unix/Host.inc
|
|
|
|
@@ -26,6 +26,11 @@
|
|
|
|
|
|
|
|
using namespace llvm;
|
|
|
|
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+std::string sys::getDefaultTargetTriple() {
|
|
|
|
+ return LLVM_DEFAULT_TARGET_TRIPLE;
|
|
|
|
+}
|
|
|
|
+#else // __FreeBSD__
|
|
|
|
static std::string getOSVersion() {
|
|
|
|
struct utsname info;
|
|
|
|
|
|
|
|
@@ -61,3 +66,4 @@ std::string sys::getDefaultTargetTriple() {
|
|
|
|
|
|
|
|
return Triple;
|
|
|
|
}
|
|
|
|
+#endif // __FreeBSD__
|