[Serialization] Add -swift-compiler-version option to swiftmodules

This commit is contained in:
Pavel Yaskevich
2024-10-23 17:10:44 -07:00
parent 39fb638516
commit ab4d8f61eb
12 changed files with 78 additions and 5 deletions

View File

@@ -1035,6 +1035,7 @@ LoadedFile *SerializedModuleLoaderBase::loadAST(
M.setPackageName(Ctx.getIdentifier(loadedModuleFile->getModulePackageName()));
}
M.setUserModuleVersion(loadedModuleFile->getUserModuleVersion());
M.setSwiftCompilerVersion(loadedModuleFile->getSwiftCompilerVersion());
for (auto name: loadedModuleFile->getAllowableClientNames()) {
M.addAllowableClientName(Ctx.getIdentifier(name));
}