Skip to content

Commit 2ee40ee

Browse files
committed
Adding Swift 5.7 compatibility versions
Swift 5.7 corresponds with: macOS 13.0, iOS 16.0, watchOS 9.0, tvOS 16.0
1 parent 1c55135 commit 2ee40ee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/Basic/Platform.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,13 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
428428
} else if (Major == 11) {
429429
if (Minor <= 2)
430430
return floorFor64(llvm::VersionTuple(5, 3));
431-
432431
return floorFor64(llvm::VersionTuple(5, 4));
433432
} else if (Major == 12) {
434433
if (Minor <= 2)
435434
return floorFor64(llvm::VersionTuple(5, 5));
436435
return floorFor64(llvm::VersionTuple(5, 6));
436+
} else if (Major == 13) {
437+
return floorFor64(llvm::VersionTuple(5, 7));
437438
}
438439
} else if (Triple.isiOS()) { // includes tvOS
439440
llvm::VersionTuple OSVersion = Triple.getiOSVersion();
@@ -472,6 +473,8 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
472473
if (Minor <= 3)
473474
return floorForArchitecture(llvm::VersionTuple(5, 5));
474475
return floorForArchitecture(llvm::VersionTuple(5, 6));
476+
} else if (Major <= 16) {
477+
return floorForArchitecture(llvm::VersionTuple(5, 7));
475478
}
476479
} else if (Triple.isWatchOS()) {
477480
llvm::VersionTuple OSVersion = Triple.getWatchOSVersion();
@@ -501,6 +504,8 @@ swift::getSwiftRuntimeCompatibilityVersionForTarget(
501504
if (Minor <= 4)
502505
return floorFor64bits(llvm::VersionTuple(5, 5));
503506
return floorFor64bits(llvm::VersionTuple(5, 6));
507+
} else if (Major <= 9) {
508+
return floorFor64bits(llvm::VersionTuple(5, 7));
504509
}
505510
}
506511

0 commit comments

Comments
 (0)