Skip to content

[Serialization] Allow rebuilding modules from the resource dir on SDK mismatch #64181

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
Mar 9, 2023

Conversation

xymus
Copy link
Contributor

@xymus xymus commented Mar 7, 2023

Modules loaded from the resource dir are not usually rebuilt from the swiftinterface as it would indicate a configuration problem. Lift that behavior for SDK mismatch and still rebuild them.

This use case applies when a toolchain is used with a different SDK than the one use to build the modules in the toolchain.

rdar://106101760

xymus added 2 commits March 7, 2023 09:55
The previous behavior kept going even after we reported an invalid
swiftmodule. As such it ended up losing the precise invalid reason and
returned Malformed later on.
… mismatch

Modules loaded from the resource dir are not usually rebuilt from the
swiftinterface as it would indicate a configuration problem. Lift that
behavior for SDK mismatch and still rebuild them.

This use case applies when a toolchain is used with a different SDK than
the one use to build the modules in the toolchain.

rdar://106101760
@xymus xymus requested a review from artemcm as a code owner March 7, 2023 18:01
@xymus
Copy link
Contributor Author

xymus commented Mar 7, 2023

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Mar 7, 2023

@swift-ci Please smoke test Windows

@xymus
Copy link
Contributor Author

xymus commented Mar 7, 2023

@swift-ci Please smoke test macOS

@xymus xymus requested a review from bnbarham March 8, 2023 16:38
@xymus xymus merged commit c95e11c into swiftlang:main Mar 9, 2023
@xymus xymus deleted the res-dir-limitation branch March 9, 2023 01:13
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