For the -Fsystem option, address feedback by Jordan.

This commit is contained in:
Argyrios Kyrtzidis
2017-02-14 23:35:06 -08:00
parent ca906d1e99
commit 32e5112874
4 changed files with 5 additions and 12 deletions

View File

@@ -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),