Skip to content
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

Support specification of compatibility with --static-swift-stdlib #881

Open
MahdiBM opened this issue Jan 21, 2024 · 0 comments
Open

Support specification of compatibility with --static-swift-stdlib #881

MahdiBM opened this issue Jan 21, 2024 · 0 comments

Comments

@MahdiBM
Copy link
Contributor

MahdiBM commented Jan 21, 2024

As mentioned in issues such as apple/swift#68671 and apple/swift#65097, sometimes a Swift change is incompatible with --static-swift-stdlib (as in swift build -c release --static-swift-stdlib) but the problem is only discovered later on, after a Swift release.
This is despite the fact that using --static-swift-stdlib is very common in Server-Side Swift apps, and reference files such as Vapor's template Dockerfile have been using this flag for a long time.
All these while SE-0342 proposed --static-swift-stdlib to become the default behavior on platforms like Linux, which has yet to take effect.

So, the question is: should this repository support a JSON field to specify compatibility with --static-swift-stdlib (e.g. build_static_stdlib?
That way, it might be easier for the Swift team to keep track of compatibility of Swift releases with projects that use the --static-swift-stdlib flag.
Penny can be the first project to specify compatibility with that flag in the projects.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant