mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Don't require a strict revision match in LLDB.
For release-management purposes during development, LLDB's embedded Swift
compiler's version number can sometimes be off-by-one in the last digit
compared to the Swift compiler.
This patch restores the old behavior from before 17183629e4.
rdar://101299168
This commit is contained in:
@@ -1173,7 +1173,7 @@ bool SerializedModuleLoaderBase::canImportModule(
|
||||
if (swiftInterfaceVersion.empty() && *unusedModuleBuffer) {
|
||||
auto metaData = serialization::validateSerializedAST(
|
||||
(*unusedModuleBuffer)->getBuffer(), Ctx.SILOpts.EnableOSSAModules,
|
||||
Ctx.LangOpts.SDKName);
|
||||
Ctx.LangOpts.SDKName, !Ctx.LangOpts.DebuggerSupport);
|
||||
versionInfo->setVersion(metaData.userModuleVersion,
|
||||
ModuleVersionSourceKind::SwiftBinaryModule);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user