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:
Adrian Prantl
2022-10-18 15:43:53 -07:00
parent 3daa8753c7
commit 3cc2831608
7 changed files with 22 additions and 14 deletions

View File

@@ -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 {