mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
For the -Fsystem option, address feedback by Jordan.
This commit is contained in:
@@ -1034,15 +1034,10 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
|
||||
Opts.ImportSearchPaths.push_back(resolveSearchPath(A->getValue()));
|
||||
}
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_F),
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_F, OPT_Fsystem),
|
||||
Args.filtered_end())) {
|
||||
Opts.FrameworkSearchPaths.push_back({resolveSearchPath(A->getValue()),
|
||||
/*isSystem=*/false});
|
||||
}
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_Fsystem),
|
||||
Args.filtered_end())) {
|
||||
Opts.FrameworkSearchPaths.push_back({resolveSearchPath(A->getValue()),
|
||||
/*isSystem=*/true});
|
||||
/*isSystem=*/A->getOption().getID() == OPT_Fsystem});
|
||||
}
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_L),
|
||||
|
||||
Reference in New Issue
Block a user