Skip to content

Frontend: add a flag to downgrade all module interface verification errors to warnings #40113

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

Conversation

nkcsgexi
Copy link
Contributor

@nkcsgexi nkcsgexi commented Nov 9, 2021

Ideally, module interface verification should fail the build when a fatal error occurs when
type checking the emitted module interface. However, we found it's hard to stage this phase in
because the ideal case requires all Swift adopters to have valid interfaces. This new front-end flag allows
swift-driver to downgrade all interface verification errors to warnings as an intermediate step.

@nkcsgexi
Copy link
Contributor Author

nkcsgexi commented Nov 9, 2021

@swift-ci please smoke test

…rrors to warnings

Ideally, module interface verification should fail the build when fatal error occurs when
type checking emitted module interfaces. However, we found it's hard to stage this phase in
because the ideal case requires all Swift adopters to have valid interfaces. This new front-end flag allows
driver to downgrade all interface verification errors to warnings as an intermediate step.
@nkcsgexi nkcsgexi force-pushed the flag-downgrade-module-verification-error branch from ab323e3 to f77ca2e Compare November 10, 2021 00:18
@nkcsgexi
Copy link
Contributor Author

@swift-ci please smoke test

@nkcsgexi nkcsgexi merged commit 9acf26b into swiftlang:main Nov 10, 2021
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.

1 participant