[Dependency Scanning] Consider '-swift-module-file' inputs when looking for dependencies

Previously this flag was only used to pass explicit dependencies to compilation tasks. This change adds support for the dependency scanner to also consider these inputs when resolving dependencies.

Resolves https://github.com/swiftlang/swift-driver/issues/1951
This commit is contained in:
Artem Chikin
2025-07-09 14:48:09 -07:00
parent f3fa225df2
commit e08b78226c
8 changed files with 77 additions and 24 deletions

View File

@@ -294,7 +294,8 @@ ModuleDependencyScanningWorker::ModuleDependencyScanningWorker(
*workerASTContext,
workerCompilerInvocation->getSearchPathOptions().ModuleLoadMode,
*scanningASTDelegate, moduleOutputPath, sdkModuleOutputPath,
swiftModuleClangCC1CommandLineArgs);
swiftModuleClangCC1CommandLineArgs,
workerCompilerInvocation->getSearchPathOptions().ExplicitSwiftModuleInputs);
}
SwiftModuleScannerQueryResult