Pass -L, -l, and -framework to REPL and interpret mode jobs.

...and then honor them.

While here, make -l a little more flexible (see interpret_with_options test).

rdar://problem/17830826, which unblocks the LLDB feature for the same.

Swift SVN r24033
This commit is contained in:
Jordan Rose
2014-12-19 17:33:03 +00:00
parent a4b1d52576
commit 14a2909cab
9 changed files with 74 additions and 15 deletions

View File

@@ -718,6 +718,11 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts, ArgList &Args,
Opts.FrameworkSearchPaths.push_back(A->getValue());
}
for (const Arg *A : make_range(Args.filtered_begin(OPT_L),
Args.filtered_end())) {
Opts.LibrarySearchPaths.push_back(A->getValue());
}
if (const Arg *A = Args.getLastArg(OPT_sdk))
Opts.SDKPath = A->getValue();