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:
@@ -889,8 +889,12 @@ void SwiftLangSupport::findInterfaceDocument(StringRef ModuleName,
|
||||
|
||||
const auto &SPOpts = Invocation.getSearchPathOptions();
|
||||
addArgPair("-sdk", SPOpts.SDKPath);
|
||||
for (auto &Path : SPOpts.FrameworkSearchPaths)
|
||||
addArgPair("-F", Path);
|
||||
for (auto &FramePath : SPOpts.FrameworkSearchPaths) {
|
||||
if (FramePath.IsSystem)
|
||||
addArgPair("-iframework", FramePath.Path);
|
||||
else
|
||||
addArgPair("-F", FramePath.Path);
|
||||
}
|
||||
for (auto &Path : SPOpts.ImportSearchPaths)
|
||||
addArgPair("-I", Path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user