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
The "swiftlang" version was only being used in a single location for a
compatibility check that is no longer required. The clang version was
unusued (which is unsurprising since it's often not available from the
Swift `--version` output). Really we only need the version itself and a
unique tag to pass as additional signature data to Swift tasks.
// We're explicitly checking the swiftlangVersion here instead of a value in the
486
-
// the toolchain's `features.json` because a `features.json` flag wasn't originally
487
-
// added when support for `-symbol-graph-minimum-access-level` was added.
488
-
//
489
-
// Instead of regressing the current documentation build experience while waiting for a
490
-
// submission that includes the `features.json` flag, we're checking the raw version here.
491
-
//
492
-
// For future coordinated changes like this between the Swift-DocC infrastructure
493
-
// in Swift Build and the Swift compiler, we'll rely on the `features.json` instead of
494
-
// raw version numbers.
495
-
return swiftlangVersion >=Version(5,6,0,316,14)
496
-
}
497
-
}
498
-
499
473
// MARK: - Diagnostics
500
474
501
475
/// An output parser which forwards all output unchanged, then generates diagnostics from a serialized diagnostics file passed in the payload once it is closed.
@@ -3600,35 +3597,18 @@ public func discoveredSwiftCompilerInfo(_ producer: any CommandProducer, _ deleg
3600
3597
3601
3598
// Values we will parse. If we end up not parsing any values, then we return an empty info struct.
3602
3599
varswiftVersion:Version?=nil
3603
-
varswiftlangVersion:Version?=nil
3604
-
varclangVersion:Version?=nil
3600
+
varswiftTag:String?=nil
3605
3601
varswiftABIVersion:String?=nil
3606
3602
3607
-
// Note that Swift toolchains downloaded from swift.org have a swiftc with a different version format than those built by Apple; the 'releaseVersionRegex' reflects that format. c.f. <rdar://problem/34956869>
3608
-
letversionRegex=#/Apple Swift version (?<swiftVersion>[\d.]+) \(swiftlang-(?<swiftlangVersion>[\d.]+) clang-(?<clangVersion>[\d.]+)\)/#
3609
-
letreleaseVersionRegex=#/(?:Apple )?Swift version (?<swiftVersion>[\d.]+) \(swift-(?<swiftlangVersion>[\d.]+)-RELEASE\)/#
3610
-
letdevelopmentVersionRegex=#/Swift version (?<swiftVersion>[\d.]+)-dev \(LLVM (?:\b[0-9a-f]+), Swift (?:\b[0-9a-f]+)\)/#
3603
+
letversionRegex=#/Swift version (?<swiftVersion>[\d.]+).*\((?<swiftTag>.*)\)/#
tryawaitwithSpec(SwiftCompilerSpec.self,.result(status:.exit(0), stdout:Data("Swift version 5.9-dev (LLVM fd31e7eab45779f, Swift 86e6bda88e47178)\n".utf8), stderr:Data())){(info:DiscoveredSwiftCompilerToolSpecInfo)in
0 commit comments