mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add '-Fsystem' framework search option to indicate path for frameworks that should be treated as 'system'
This has the effect of propagating the search path to the clang importer as '-iframework'. It doesn't affect whether a swift module is treated as system or not, this can be done as follow-up enhancement.
This commit is contained in:
@@ -1036,7 +1036,13 @@ static bool ParseSearchPathArgs(SearchPathOptions &Opts,
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_F),
|
||||
Args.filtered_end())) {
|
||||
Opts.FrameworkSearchPaths.push_back(resolveSearchPath(A->getValue()));
|
||||
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});
|
||||
}
|
||||
|
||||
for (const Arg *A : make_range(Args.filtered_begin(OPT_L),
|
||||
|
||||
Reference in New Issue
Block a user