-
Notifications
You must be signed in to change notification settings - Fork 78
Package.swift fixes for Swift 5.4 release #797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
var globalConcurrencyFlags: [String] = [] | ||
#if swift(>=5.4) | ||
#if swift(>=5.4) && os(Linux) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why only on linux? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I see, it's removed from the release now. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like unavailable on Darwin 😕
$ swift -version
Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Target: x86_64-apple-darwin20.2.0
$ swift build
[1/1] Planning build
<unknown>:0: error: no such module '_Concurrency'
<unknown>:0: error: no such module '_Concurrency'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it should be imported automatically on darwin... I'll dig into it hm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't need the flag at all tbh
#elseif swift(>=5.4) | ||
dependencies.append( | ||
.package(name: "SwiftSyntax", url: "https://github.com/apple/swift-syntax.git", .exact("0.50400.0")) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's right, thank you!
A flaky test and failure in Prometheus in samples since it changed API it seems... I'll fix those, thanks! |
Fix some issues in Package.swift for the final Swift 5.4 Linux/Darwin releases
Motivation:
There are a couple Package.swift issues that are breaking builds under Swift 5.4 for both Linux and Darwin:
-enable-experimental-concurrency
flag only appears to be present in Swift 5.4 for Linuxswift-syntax
snapshot selected for 5.4 doesn't appear to be compatible with the final 5.4 releaseModifications:
-enable-experimental-concurrency
flag for Linux platforms0.50400.0
release ofswift-syntax
swift-syntax
development snapshot for Swift versions beyond 5.4Result: