forked from OSchip/llvm-project
Driver/Darwin: Switch to using -macosx for OS name in triples.
llvm-svn: 129834
This commit is contained in:
parent
0854f347d2
commit
308cfd045f
|
@ -127,13 +127,9 @@ static void getDarwinDefines(MacroBuilder &Builder, const LangOptions &Opts,
|
||||||
Min = Maj - 4;
|
Min = Maj - 4;
|
||||||
Maj = 10;
|
Maj = 10;
|
||||||
}
|
}
|
||||||
} else if (Triple.getOS() == llvm::Triple::OSX) {
|
|
||||||
Triple.getOSVersion(Maj, Min, Rev);
|
|
||||||
PlatformName = "macosx";
|
|
||||||
} else {
|
} else {
|
||||||
assert(Triple.getOS() == llvm::Triple::IOS && "unexpected triple!");
|
|
||||||
Triple.getOSVersion(Maj, Min, Rev);
|
Triple.getOSVersion(Maj, Min, Rev);
|
||||||
PlatformName = "ios";
|
PlatformName = Triple.getOSName();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -151,7 +151,7 @@ std::string Darwin::ComputeEffectiveClangTriple(const ArgList &Args) const {
|
||||||
|
|
||||||
llvm::SmallString<16> Str;
|
llvm::SmallString<16> Str;
|
||||||
llvm::raw_svector_ostream(Str)
|
llvm::raw_svector_ostream(Str)
|
||||||
<< (isTargetIPhoneOS() ? "ios" : "osx")
|
<< (isTargetIPhoneOS() ? "ios" : "macosx")
|
||||||
<< Version[0] << "." << Version[1] << "." << Version[2];
|
<< Version[0] << "." << Version[1] << "." << Version[2];
|
||||||
Triple.setOSName(Str.str());
|
Triple.setOSName(Str.str());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue