Skip to content

Previews break with explicit modules enabled <rdar://146184835> #259

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 1 commit into from
Mar 6, 2025

Conversation

jonathanpenn
Copy link
Contributor

With the new previews execution mode, we don't need to be as aggressive stripping compiler flags for thunk builds like we did for the old dynamic replacement execution mode. And doing so actually breaks when explicit modules are turned on. After auditing the minimum number of flags needed to request single file compiler invocations that don't break with explict modules enabled, this change moves the remaining flags into clauses that only affect dynamic replacement mode.

Updated unit tests to match (including some better formatting for the large parameter checks).

With the new previews execution mode, we don't need to be as aggressive stripping compiler flags for thunk builds like we did for the old dynamic replacement execution mode. And doing so actually breaks when explicit modules are turned on. After auditing the minimum number of flags needed to request single file compiler invocations that don't break with explict modules enabled, this change moves the remaining flags into clauses that only affect dynamic replacement mode.

Updated unit tests to match (including some better formatting for the large parameter checks).
@jonathanpenn jonathanpenn force-pushed the jpenn/preview-info-explicit-modules branch from 47fd72f to 9007eeb Compare March 6, 2025 17:36
@neonichu
Copy link
Collaborator

neonichu commented Mar 6, 2025

@swift-ci please test

@jonathanpenn jonathanpenn merged commit b21fe86 into main Mar 6, 2025
3 checks passed
@jonathanpenn jonathanpenn deleted the jpenn/preview-info-explicit-modules branch March 6, 2025 19:49
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.

4 participants