Skip to content

Enable some compiler flags on Swift 5.9+ #9

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

Merged
merged 2 commits into from
Nov 23, 2023
Merged

Enable some compiler flags on Swift 5.9+ #9

merged 2 commits into from
Nov 23, 2023

Conversation

MahdiBM
Copy link
Collaborator

@MahdiBM MahdiBM commented Nov 21, 2023

Enable the ExistentialAny and StrictConcurrency compiler flags.

  • Tests passed locally.

@MahdiBM MahdiBM requested a review from 0xTim as a code owner November 21, 2023 19:30
import PackageDescription

let swiftSettings: [SwiftSetting] = [
.enableUpcomingFeature("ExistentialAny"),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't we need this in 5.8 to make the change compile?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it works down until 5.7.
But I think we might be able to just drop 5.8 all together, the generator is already at 5.9+.
I need to check.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah if the generator is 5.9 we can move to 5.9 only

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry that was some misinformation, the generator is still on 5.8.
But again, it won't cause problems on 5.8.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright i've updated the PR to be 5.9-only in anticipation of the 1.0.0 swift-openapi-generator release.

Copy link
Member

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@0xTim 0xTim merged commit 85eb954 into main Nov 23, 2023
@MahdiBM MahdiBM deleted the mmbm-enable-flags branch December 13, 2023 13:03
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

Successfully merging this pull request may close these issues.

2 participants