Skip to content

[Explicit Module Builds] Use context hash in Swift dependency module file names #705

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
Jun 8, 2021

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Jun 8, 2021

This change ensures that explicit swift module dependencies are built into binary modules with filenames that encode their context hash (as reported by the dependency scanner). e.g. A.swiftinterface --> A-<CONTEXT_HASH>.swiftmodule.

This is required because in some situations builds of the same module for different contexts (e.g. target architectures) otherwise overlap and cause chaos.

Resolves rdar://78820404

…file names

This change ensures that explicit swift module dependencies are built into binary modules with filenames that encode their context hash (as reported by the dependency scanner). e.g. `A.swiftinterface` --> `A-<CONTEXT_HASH>.swiftmodule`.

This is required because in some contexts builds of the same module for different contexts (e.g. target architectures) otherwise overlap and cause chaos.

Resolves rdar://78820404
@artemcm artemcm requested a review from nkcsgexi June 8, 2021 21:26
Copy link
Contributor

@nkcsgexi nkcsgexi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for fixing this!

@artemcm
Copy link
Contributor Author

artemcm commented Jun 8, 2021

@swift-ci please test

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