Skip to content

Conversation

tshortli
Copy link
Contributor

Downgrade the new error in #84244 to a warning.

The PR smoke test build is using a different build system that is failing to pass -swift-version arguments when building various stdlib modules. That needs to be fixed, but for now we also need to unblock CI.

…uage_mode'.

Downgrade the new error in swiftlang#84244 to a
warning.

The PR smoke test build is using a different build system that is failing to
pass `-swift-version` arguments when building various stdlib modules. That
needs to be fixed, but for now we also need to unblock CI.
@tshortli tshortli requested a review from artemcm as a code owner September 15, 2025 21:10
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@shahmishal shahmishal merged commit e8a9286 into swiftlang:main Sep 15, 2025
0 of 3 checks passed
@tshortli tshortli deleted the revert-require-swift-version-in-module-interfaces branch September 15, 2025 21:14
tshortli added a commit to tshortli/swift that referenced this pull request Sep 16, 2025
If a .swiftinterface file does not include an explicit `-language-mode` option
(or its predecessor `-swift-version`) and needs to be built as a dependency of a
client compilation, then the invocation to build the module from interface
would end up inheriting the language mode that the client code is built with.
This can result in spurious type checking diagnostics or even mis-compilation.
To ensure that a module interface is always built using the language mode that
its source code was originally built with, require an explicit `-language-mode`
option when emitting swiftinterface files.

In swiftlang#84307 this diagnostic was downgraded
to a warning. The failures it caused in PR testing should now be resolved.

Resolves rdar://145168219.
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