Skip to content

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