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

Deprecate -warn-on-potentially-unavailable-enum-case option #1418

Conversation

tshortli
Copy link
Contributor

When -warn-on-potentially-unavailable-enum-case was introduced, the build system was required to invoke swift-frontend at artificially low deployment targets when emitting .swiftinterface files for legacy architectures. Because the deployment target was low, some availability diagnostics needed to be de-fanged in order to allow module interface emission to succeed. Today, the build system is able to use the correct deployment target when emitting module interfaces and the -warn-on-potentially-unavailable-enum-case is superfluous, so deprecate it.

Resolves rdar://114092047

When `-warn-on-potentially-unavailable-enum-case` was introduced, the build
system was required to invoke `swift-frontend` at artificially low deployment
targets when emitting `.swiftinterface` files for legacy architectures. Because
the deployment target was low, some availability diagnostics needed to be
de-fanged in order to allow module interface emission to succeed. Today, the
build system is able to use the correct deployment target when emitting module
interfaces and the `-warn-on-potentially-unavailable-enum-case` is superfluous,
so deprecate it.

Resolves rdar://114092047
@tshortli tshortli requested a review from artemcm August 18, 2023 17:27
@tshortli
Copy link
Contributor Author

Corresponding compiler change: apple/swift#68009 (these are not dependent on each other, though).

@tshortli
Copy link
Contributor Author

@swift-ci please test

@tshortli tshortli merged commit 668ecfa into apple:main Aug 18, 2023
3 checks passed
@tshortli tshortli deleted the deprecate-warn-on-potentially-unavailable-enum-case branch August 18, 2023 19:37
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.

None yet

2 participants