You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adjust some comments in the Windows toolchain setup
swiftlang/swift#79426 will eliminate the need for this custom fallback code for Windows; update the comment to make clear why this is needed and when it can be removed.
Copy file name to clipboardExpand all lines: Sources/SWBCore/ToolchainRegistry.swift
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -113,8 +113,9 @@ public final class Toolchain: Hashable, Sendable {
113
113
data =tryPropertyList.fromPath(toolchainInfoPath, fs: fs)
114
114
}catch{
115
115
if path.fileExtension !="xctoolchain" && operatingSystem ==.windows {
116
-
// Windows toolchains do not have any metadata files that define a version, so the version needs to be derived from the path.
116
+
// Windows toolchains do not have any metadata files that define a version (ToolchainInfo.plist is only present in Swift 6.2+ toolchains), so the version needs to be derived from the path.
117
117
// Use the directory name to scrape the semantic version from.
118
+
// This branch can be removed once we no longer need to work with toolchains older than Swift 6.2.
0 commit comments