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) if (global.params.targetTriple.getEnvironment() == llvm::Triple::Android)
{ {
VersionCondition::addPredefinedGlobalIdent("Android"); VersionCondition::addPredefinedGlobalIdent("Android");
VersionCondition::addPredefinedGlobalIdent("CRuntime_Bionic");
} }
else else
#endif #endif
{ {
VersionCondition::addPredefinedGlobalIdent("linux"); VersionCondition::addPredefinedGlobalIdent("linux");
VersionCondition::addPredefinedGlobalIdent("Posix"); VersionCondition::addPredefinedGlobalIdent("Posix");
VersionCondition::addPredefinedGlobalIdent("CRuntime_Glibc");
} }
break; break;
case llvm::Triple::Haiku: case llvm::Triple::Haiku: