Serialization: allow different channels to share a module cache location

This commit is contained in:
Alexis Laferrière
2024-02-29 19:21:47 -08:00
parent 1e4fe67f40
commit 7edd23a627
2 changed files with 14 additions and 0 deletions

View File

@@ -1944,6 +1944,10 @@ InterfaceSubContextDelegateImpl::getCacheHash(StringRef useInterfacePath,
// that affects references serialized in the cached file.
sdkBuildVersion,
// Applying the distribution channel of the current compiler enables
// different compilers to share a module cache location.
version::getCurrentCompilerChannel(),
// Whether or not we're tracking system dependencies affects the
// invalidation behavior of this cache item.
genericSubInvocation.getFrontendOptions().shouldTrackSystemDependencies(),