Define CRuntime_{Bionic, Glibc}

This commit is contained in:
David Nadlinger 2015-08-29 15:23:17 +02:00
parent eba9130881
commit 12aa09ed32

View file

@ -741,12 +741,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: