@@ -116,6 +116,7 @@ swift::basePlatformForExtensionPlatform(PlatformKind Platform) {
116116 case PlatformKind::tvOS:
117117 case PlatformKind::watchOS:
118118 case PlatformKind::visionOS:
119+ case PlatformKind::FreeBSD:
119120 case PlatformKind::OpenBSD:
120121 case PlatformKind::Windows:
121122 case PlatformKind::none:
@@ -158,6 +159,8 @@ static bool isPlatformActiveForTarget(PlatformKind Platform,
158159 case PlatformKind::visionOS:
159160 case PlatformKind::visionOSApplicationExtension:
160161 return Target.isXROS ();
162+ case PlatformKind::FreeBSD:
163+ return Target.isOSFreeBSD ();
161164 case PlatformKind::OpenBSD:
162165 return Target.isOSOpenBSD ();
163166 case PlatformKind::Windows:
@@ -283,6 +286,8 @@ swift::tripleOSTypeForPlatform(PlatformKind platform) {
283286 case PlatformKind::visionOS:
284287 case PlatformKind::visionOSApplicationExtension:
285288 return llvm::Triple::XROS;
289+ case PlatformKind::FreeBSD:
290+ return llvm::Triple::FreeBSD;
286291 case PlatformKind::OpenBSD:
287292 return llvm::Triple::OpenBSD;
288293 case PlatformKind::Windows:
@@ -319,6 +324,7 @@ bool swift::isPlatformSPI(PlatformKind Platform) {
319324 case PlatformKind::watchOSApplicationExtension:
320325 case PlatformKind::visionOS:
321326 case PlatformKind::visionOSApplicationExtension:
327+ case PlatformKind::FreeBSD:
322328 case PlatformKind::OpenBSD:
323329 case PlatformKind::Windows:
324330 case PlatformKind::none:
0 commit comments