Skip to content

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Sep 18, 2025

Limit reporting as an error imports of a non-library-evolution module from a library-evolution enabled module to sources that are part of the SDK. The error also requires having enabled InternalImportsByDefault. This should help prevent SDK breaking regressions while loosening the restriction elsewhere.

Framework owners can enable -library-level api or spi to get this check as an error, along with more sanity checks.

Other cases remain as a warning. We should look to silence it in some cases or offer a flag to do so.

Resolves: #84241
rdar://160414667

@xymus
Copy link
Contributor Author

xymus commented Sep 18, 2025

@swift-ci Please smoke test

Limit reporting as an error imports of a non-library-evolution module
from a library-evolution enabled module to sources that are part of the
SDK. The error also requires having enabled `InternalImportsByDefault`.
This should help prevent SDK breaking regressions while loosening the
restriction elsewhere.

Framework owners can enable `-library-level api` or `spi` to get this
check as an error, along with more sanity checks.

Other cases remain as a warning. We should look to silence it in some
cases or offer a flag to do so.

rdar://160414667
@xymus
Copy link
Contributor Author

xymus commented Sep 18, 2025

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Sep 19, 2025

@swift-ci Please smoke test Windows

@xymus xymus merged commit 97002e1 into swiftlang:main Sep 19, 2025
3 checks passed
@xymus xymus deleted the le-import-warn branch September 19, 2025 23:34
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.

Building a module for a non-ABI stable platform fails when Swift stdlib modules aren't built w/Library Evolution
2 participants