mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: apply the SDK build version as part of the cache hash
The SDK build version is a decent heuristic for expected changes in the SDK. Any change in SDK, to clang headers in particular, can break references from cached swiftmodules. Track the SDK build version as part of the swiftmodule cache hash. This will ensure we rebuild from swiftinterfaces on SDK updates. rdar://122655978
This commit is contained in:
@@ -345,7 +345,7 @@ bool ImplicitModuleInterfaceBuilder::buildSwiftModuleInternal(
|
||||
}
|
||||
|
||||
SubError = (bool)subASTDelegate.runInSubCompilerInstance(
|
||||
moduleName, interfacePath, OutPath, diagnosticLoc,
|
||||
moduleName, interfacePath, sdkPath, OutPath, diagnosticLoc,
|
||||
silenceInterfaceDiagnostics,
|
||||
[&](SubCompilerInstanceInfo &info) {
|
||||
auto EBuilder = ExplicitModuleInterfaceBuilder(
|
||||
|
||||
Reference in New Issue
Block a user