Merge pull request #1095 from redstar/versions

Add missing version identifiers for C runtimes.
This commit is contained in:
Kai Nacke 2015-09-19 18:11:36 +02:00
commit 06cfb9f06d
2 changed files with 5 additions and 0 deletions

View file

@ -749,12 +749,14 @@ static void registerPredefinedTargetVersions() {
if (global.params.targetTriple.getEnvironment() == llvm::Triple::Android)
{
VersionCondition::addPredefinedGlobalIdent("Android");
VersionCondition::addPredefinedGlobalIdent("CRuntime_Bionic");
}
else
#endif
{
VersionCondition::addPredefinedGlobalIdent("linux");
VersionCondition::addPredefinedGlobalIdent("Posix");
VersionCondition::addPredefinedGlobalIdent("CRuntime_Glibc");
}
break;
case llvm::Triple::Haiku: