mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
DependenciesScanner: report user module version for textual Swift interfaces
This commit is contained in:
@@ -154,7 +154,7 @@ SwiftModuleScanner::scanInterfaceFile(Twine moduleInterfacePath,
|
||||
realModuleName.str(), moduleInterfacePath.str(), sdkPath,
|
||||
StringRef(), SourceLoc(),
|
||||
[&](ASTContext &Ctx, ModuleDecl *mainMod, ArrayRef<StringRef> BaseArgs,
|
||||
ArrayRef<StringRef> PCMArgs, StringRef Hash) {
|
||||
ArrayRef<StringRef> PCMArgs, StringRef Hash, StringRef UserModVer) {
|
||||
assert(mainMod);
|
||||
std::string InPath = moduleInterfacePath.str();
|
||||
auto compiledCandidates =
|
||||
@@ -247,7 +247,7 @@ SwiftModuleScanner::scanInterfaceFile(Twine moduleInterfacePath,
|
||||
Result = ModuleDependencyInfo::forSwiftInterfaceModule(
|
||||
outputPathBase.str().str(), InPath, compiledCandidatesRefs,
|
||||
ArgsRefs, linkLibraries, PCMArgs, Hash, isFramework, isStatic, {},
|
||||
/*module-cache-key*/ "");
|
||||
/*module-cache-key*/ "", UserModVer);
|
||||
|
||||
if (Ctx.CASOpts.EnableCaching) {
|
||||
std::vector<std::string> clangDependencyFiles;
|
||||
|
||||
Reference in New Issue
Block a user