mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
DependencyScanner: honor additional compiler flags in interfaces files when collecting imports
Additional flags in interface files may change parsing behavior like #if statements. We should use a fresh ASTContext with these additional flags when parsing interface files to collect imports. rdar://62612027
This commit is contained in:
@@ -194,7 +194,8 @@ public:
|
||||
virtual void verifyAllModules() override;
|
||||
|
||||
virtual Optional<ModuleDependencies> getModuleDependencies(
|
||||
StringRef moduleName, ModuleDependenciesCache &cache) override;
|
||||
StringRef moduleName, ModuleDependenciesCache &cache,
|
||||
SubASTContextDelegate &delegate) override;
|
||||
};
|
||||
|
||||
/// Imports serialized Swift modules into an ASTContext.
|
||||
|
||||
Reference in New Issue
Block a user