summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--contrib/llvm/lib/Support/Unix/Host.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Support/Unix/Host.inc b/contrib/llvm/lib/Support/Unix/Host.inc
index 8cbec8c..9c75230 100644
--- a/contrib/llvm/lib/Support/Unix/Host.inc
+++ b/contrib/llvm/lib/Support/Unix/Host.inc
@@ -35,6 +35,9 @@ static std::string getOSVersion() {
}
std::string sys::getHostTriple() {
+#ifdef __FreeBSD__
+ return LLVM_HOSTTRIPLE;
+#else
// FIXME: Derive directly instead of relying on the autoconf generated
// variable.
@@ -91,4 +94,5 @@ std::string sys::getHostTriple() {
}
return Triple;
+#endif
}
OpenPOWER on IntegriCloud