mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-14 15:16:07 +03:00
Merge pull request #1095 from redstar/versions
Add missing version identifiers for C runtimes.
This commit is contained in:
commit
06cfb9f06d
2 changed files with 5 additions and 0 deletions
|
@ -219,6 +219,9 @@ bool VersionCondition::isPredefined(const char *ident)
|
|||
"BigEndian",
|
||||
"ELFv1",
|
||||
"ELFv2",
|
||||
#if IN_LLVM
|
||||
"CRuntime_Bionic",
|
||||
#endif
|
||||
"CRuntime_Digitalmars",
|
||||
"CRuntime_Glibc",
|
||||
"CRuntime_Microsoft",
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue