llvm.org GIT mirror llvm / 88c924c
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 Daniel Dunbar 9 years ago
1 changed file(s) with 1 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
8686 std::string::size_type DarwinDashIdx = Triple.find("-darwin");
8787 if (DarwinDashIdx != std::string::npos) {
8888 Triple.resize(DarwinDashIdx + strlen("-darwin"));
89
90 // Only add the major part of the os version.
91 std::string Version = getOSVersion();
92 Triple += Version.substr(0, Version.find('.'));
89 Triple += getOSVersion();
9390 }
9491
9592 return Triple;