@@ -116,6 +116,7 @@ swift::basePlatformForExtensionPlatform(PlatformKind Platform) {
116
116
case PlatformKind::tvOS:
117
117
case PlatformKind::watchOS:
118
118
case PlatformKind::visionOS:
119
+ case PlatformKind::FreeBSD:
119
120
case PlatformKind::OpenBSD:
120
121
case PlatformKind::Windows:
121
122
case PlatformKind::none:
@@ -160,6 +161,8 @@ static bool isPlatformActiveForTarget(PlatformKind Platform,
160
161
return Target.isXROS ();
161
162
case PlatformKind::OpenBSD:
162
163
return Target.isOSOpenBSD ();
164
+ case PlatformKind::FreeBSD:
165
+ return Target.isOSFreeBSD ();
163
166
case PlatformKind::Windows:
164
167
return Target.isOSWindows ();
165
168
case PlatformKind::none:
@@ -283,6 +286,8 @@ swift::tripleOSTypeForPlatform(PlatformKind platform) {
283
286
case PlatformKind::visionOS:
284
287
case PlatformKind::visionOSApplicationExtension:
285
288
return llvm::Triple::XROS;
289
+ case PlatformKind::FreeBSD:
290
+ return llvm::Triple::FreeBSD;
286
291
case PlatformKind::OpenBSD:
287
292
return llvm::Triple::OpenBSD;
288
293
case PlatformKind::Windows:
@@ -320,6 +325,7 @@ bool swift::isPlatformSPI(PlatformKind Platform) {
320
325
case PlatformKind::visionOS:
321
326
case PlatformKind::visionOSApplicationExtension:
322
327
case PlatformKind::OpenBSD:
328
+ case PlatformKind::FreeBSD:
323
329
case PlatformKind::Windows:
324
330
case PlatformKind::none:
325
331
return false ;
0 commit comments