Frontend: move ExplicitSwiftModules into SearchPathOptions, NFC

This commit is contained in:
Xi Ge
2020-06-02 12:38:12 -07:00
parent 9e88549199
commit 01c18d01c1
6 changed files with 10 additions and 13 deletions

View File

@@ -865,6 +865,9 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
Opts.DisableModulesValidateSystemDependencies |=
Args.hasArg(OPT_disable_modules_validate_system_headers);
for (auto A: Args.filtered(OPT_swift_module_file_EQ)) {
Opts.ExplicitSwiftModules.push_back(resolveSearchPath(A->getValue()));
}
// Opts.RuntimeIncludePath is set by calls to
// setRuntimeIncludePath() or setMainExecutablePath().
// Opts.RuntimeImportPath is set by calls to