mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 09:00:33 +03:00
Merge pull request #3288 from jacob-carlborg/ios
Add support for iOS, tvOS and watchOS
This commit is contained in:
commit
97e0d978ee
5 changed files with 47 additions and 20 deletions
|
@ -811,6 +811,21 @@ void registerPredefinedTargetVersions() {
|
|||
VersionCondition::addPredefinedGlobalIdent("AIX");
|
||||
VersionCondition::addPredefinedGlobalIdent("Posix");
|
||||
break;
|
||||
case llvm::Triple::IOS:
|
||||
VersionCondition::addPredefinedGlobalIdent("iOS");
|
||||
VersionCondition::addPredefinedGlobalIdent("Posix");
|
||||
VersionCondition::addPredefinedGlobalIdent("CppRuntime_Clang");
|
||||
break;
|
||||
case llvm::Triple::TvOS:
|
||||
VersionCondition::addPredefinedGlobalIdent("TVOS");
|
||||
VersionCondition::addPredefinedGlobalIdent("Posix");
|
||||
VersionCondition::addPredefinedGlobalIdent("CppRuntime_Clang");
|
||||
break;
|
||||
case llvm::Triple::WatchOS:
|
||||
VersionCondition::addPredefinedGlobalIdent("WatchOS");
|
||||
VersionCondition::addPredefinedGlobalIdent("Posix");
|
||||
VersionCondition::addPredefinedGlobalIdent("CppRuntime_Clang");
|
||||
break;
|
||||
default:
|
||||
if (triple.getEnvironment() == llvm::Triple::Android) {
|
||||
VersionCondition::addPredefinedGlobalIdent("Android");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue