[BrdigingHeader] Auto bridging header chaining

Add ability to automatically chaining the bridging headers discovered from all
dependencies module when doing swift caching build. This will eliminate all
implicit bridging header imports from the build and make the bridging header
importing behavior much more reliable, while keep the compatibility at maximum.

For example, if the current module A depends on module B and C, and both B and
C are binary modules that uses bridging header, when building module A,
dependency scanner will construct a new header that chains three bridging
headers together with the option to build a PCH from it. This will make all
importing errors more obvious while improving the performance.
This commit is contained in:
Steven Wu
2025-01-06 15:52:32 -08:00
parent 8534f29ef5
commit 9d59044bb1
44 changed files with 1094 additions and 275 deletions

View File

@@ -233,7 +233,9 @@ using SwiftSourceModuleDetailsLayout =
IdentifierIDField, // CASFileSystemRootID
IdentifierIDField, // bridgingHeaderIncludeTree
FlagIDArrayIDField, // buildCommandLine
FlagIDArrayIDField // bridgingHeaderBuildCommandLine
FlagIDArrayIDField, // bridgingHeaderBuildCommandLine
IdentifierIDField, // chainedBridgingHeaderPath
IdentifierIDField // chainedBridgingHeaderContent
>;
using SwiftBinaryModuleDetailsLayout =