Merge pull request #73601 from cachemeifyoucan/eng/PR-127844120

[ScanDependency] Pass crossimport overlay file to swift-frontend
This commit is contained in:
Steven Wu
2024-05-20 10:38:04 -07:00
committed by GitHub
9 changed files with 118 additions and 25 deletions

View File

@@ -2091,6 +2091,12 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
*forceModuleLoadingMode);
}
for (auto *A : Args.filtered(OPT_swift_module_cross_import))
Opts.CrossImportInfo[A->getValue(0)].push_back(A->getValue(1));
Opts.DisableCrossImportOverlaySearch |=
Args.hasArg(OPT_disable_cross_import_overlay_search);
// Opts.RuntimeIncludePath is set by calls to
// setRuntimeIncludePath() or setMainExecutablePath().
// Opts.RuntimeImportPath is set by calls to