mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
sys/Host: Change getHostTriple() to return the full Darwin version on OS X.
llvm-svn: 129852
This commit is contained in:
parent
dc1965a16c
commit
d1ebdf5c43
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user