summaryrefslogtreecommitdiff
path: root/lib/Support/Unix/Host.inc
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2011-04-20 15:44:33 +0000
committerDaniel Dunbar <daniel@zuster.org>2011-04-20 15:44:33 +0000
commit88c924c67e894981e3e92ecd95e4d9b46ac92e65 (patch)
tree3e8fdc0fdae73db7f464e38afc13aa5cefac05b4 /lib/Support/Unix/Host.inc
parente1fee48cd0d1e515f247fe3bceceb0f854623f73 (diff)
downloadllvm-88c924c67e894981e3e92ecd95e4d9b46ac92e65.tar.gz
llvm-88c924c67e894981e3e92ecd95e4d9b46ac92e65.tar.bz2
llvm-88c924c67e894981e3e92ecd95e4d9b46ac92e65.tar.xz
sys/Host: Change getHostTriple() to return the full Darwin version on OS X.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Host.inc')
-rw-r--r--lib/Support/Unix/Host.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Support/Unix/Host.inc b/lib/Support/Unix/Host.inc
index ed74b67599..8cbec8cd7e 100644
--- a/lib/Support/Unix/Host.inc
+++ b/lib/Support/Unix/Host.inc
@@ -87,10 +87,7 @@ std::string sys::getHostTriple() {
std::string::size_type DarwinDashIdx = Triple.find("-darwin");
if (DarwinDashIdx != std::string::npos) {
Triple.resize(DarwinDashIdx + strlen("-darwin"));
-
- // Only add the major part of the os version.
- std::string Version = getOSVersion();
- Triple += Version.substr(0, Version.find('.'));
+ Triple += getOSVersion();
}
return Triple;