Add option to accept external module dependency map as input

With: `-external-dependency-module-map-file`
This commit is contained in:
Artem Chikin
2020-07-20 16:12:46 -07:00
parent 1c1a263315
commit c52982c9de
6 changed files with 32 additions and 1 deletions

View File

@@ -905,6 +905,8 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
for (auto A: Args.filtered(OPT_candidate_module_file)) {
Opts.CandidateCompiledModules.push_back(resolveSearchPath(A->getValue()));
}
if (const Arg *A = Args.getLastArg(OPT_external_dependency_module_map))
Opts.ExternalDependencyModuleMap = A->getValue();
// Opts.RuntimeIncludePath is set by calls to
// setRuntimeIncludePath() or setMainExecutablePath().