Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2023-02-16 12:54:58 -08:00
4 changed files with 31 additions and 0 deletions

View File

@@ -1474,6 +1474,15 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
}
Opts.setCompilerPluginLibraryPaths(CompilerPluginLibraryPaths);
std::vector<std::string> CompilerPluginExecutablePaths(
Opts.getCompilerPluginExecutablePaths());
for (const Arg *A : Args.filtered(OPT_load_plugin_executable)) {
// NOTE: The value has '#<module names>' after the path.
// But resolveSearchPath() works as long as the value starts with a path.
CompilerPluginExecutablePaths.push_back(resolveSearchPath(A->getValue()));
}
Opts.setCompilerPluginExecutablePaths(CompilerPluginExecutablePaths);
return false;
}