mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
a426b286c8
patch for r263619, and unify all the URLs to point to svnweb.
27 lines
689 B
Diff
27 lines
689 B
Diff
This patch ensures the target triple that is passed during the compiler build is
|
|
respected, instead of mangling it.
|
|
|
|
Introduced here: http://svnweb.freebsd.org/changeset/base/221503
|
|
|
|
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__
|