Skip to content

[Explicit Module Builds] Include source modulemap path into PCM filename hash. #788

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
Aug 9, 2021

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Aug 6, 2021

Not doing so can lead to dangerous collisions if a build system uses a cetral cache across different targets that have a common dependency that is found in different places in the filesystem. For example, when building targets A and B, both of which depend on Clang module C, but have different search paths, finding C in two different locations, we should produce two distinct PCMs. With today's hashing scheme, the second will overwrite the first.

…ame hash.

Not doing so can lead to dangerous collisions if a build system uses a cetral cache across different targets that have a common dependency that is found in different places in the filesystem. For example, when building targets `A` and `B`, both of which depend on Clang module `C`, but have different search paths, finding `C` in two different locations, we should produce two distinct PCMs. With today's hashing scheme, the second will overwrite the first.
@artemcm artemcm requested a review from nkcsgexi August 6, 2021 21:01
@artemcm
Copy link
Contributor Author

artemcm commented Aug 6, 2021

@swift-ci please test

@artemcm
Copy link
Contributor Author

artemcm commented Aug 9, 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