mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
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
This commit is contained in:
parent
e1fee48cd0
commit
88c924c67e
@ -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…
x
Reference in New Issue
Block a user