Add -swift-module-file frontend flag for explicit Swift module dependencies

This commit is contained in:
Artem Chikin
2023-02-03 15:08:12 -08:00
parent 7a89642341
commit c1599fede4
7 changed files with 55 additions and 2 deletions

View File

@@ -129,7 +129,7 @@ class SearchPathOptions;
class CompilerInvocation;
/// A ModuleLoader that loads explicitly built Swift modules specified via
/// -swift-module-file
/// -swift-module-file or modules found in
class ExplicitSwiftModuleLoader: public SerializedModuleLoaderBase {
explicit ExplicitSwiftModuleLoader(ASTContext &ctx, DependencyTracker *tracker,
ModuleLoadingMode loadMode,
@@ -164,6 +164,7 @@ public:
create(ASTContext &ctx,
DependencyTracker *tracker, ModuleLoadingMode loadMode,
StringRef ExplicitSwiftModuleMap,
const std::vector<std::pair<std::string, std::string>> &ExplicitSwiftModuleInputs,
bool IgnoreSwiftSourceInfoFile);
/// Append visible module names to \p names. Note that names are possibly