projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1fee48
)
sys/Host: Change getHostTriple() to return the full Darwin version on OS X.
author
Daniel Dunbar
<daniel@zuster.org>
Wed, 20 Apr 2011 15:44:33 +0000
(15:44 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Wed, 20 Apr 2011 15:44:33 +0000
(15:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129852
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Unix/Host.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Unix/Host.inc
b/lib/Support/Unix/Host.inc
index ed74b6759901adbacd222622ef55c1048024c46e..8cbec8cd7ee8c11c9087208fbd183886914c243c 100644
(file)
--- 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;