mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Macros] Small review changes
* New struct to store a pair of plugin search path and the server path * typo
This commit is contained in:
@@ -1494,11 +1494,12 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
|
||||
|
||||
for (const Arg *A : Args.filtered(OPT_external_plugin_path)) {
|
||||
// '<plugin directory>#<plugin server executable path>'.
|
||||
// FIXME: '#' can be used in the paths.
|
||||
StringRef dylibPath;
|
||||
StringRef serverPath;
|
||||
std::tie(dylibPath, serverPath) = StringRef(A->getValue()).split('#');
|
||||
Opts.ExternalPluginSearchPaths.push_back(
|
||||
resolveSearchPath(dylibPath) + "#" + resolveSearchPath(serverPath));
|
||||
{resolveSearchPath(dylibPath), resolveSearchPath(serverPath)});
|
||||
}
|
||||
|
||||
for (const Arg *A : Args.filtered(OPT_L)) {
|
||||
|
||||
Reference in New Issue
Block a user