mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +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:
@@ -116,7 +116,11 @@ int main(int argc, char **argv) {
|
||||
Invocation.setModuleName("lldbtest");
|
||||
Invocation.getClangImporterOptions().ModuleCachePath = ModuleCachePath;
|
||||
Invocation.setImportSearchPaths(ImportPaths);
|
||||
Invocation.setFrameworkSearchPaths(FrameworkPaths);
|
||||
std::vector<swift::SearchPathOptions::FrameworkSearchPath> FramePaths;
|
||||
for (const auto &path : FrameworkPaths) {
|
||||
FramePaths.push_back({path, /*isSystem=*/false});
|
||||
}
|
||||
Invocation.setFrameworkSearchPaths(FramePaths);
|
||||
|
||||
if (CI.setup(Invocation))
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user