mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When enable bridging header auto chaining, it is possible for the compilation to have a PCH file input for the bridging header from a binary swift module dependency. In this case, we should not report a bridging header for current module as bridging header can be leaking out through swiftinterface file. To fully distinguish the PCH files passed in through different situation, here are the situations: * If no chaining is used, only `-import-objc-header` option is used and it can be used to pass either a header file or a PCH file depending if GeneratePCH job is requested or not. * If chaining is enabled, `-import-objc-header` is only used to pass the header file and `-import-pch` is used to pass PCH file. Chaining mode requires PCH generation if bridging header is used. rdar://144623388
169 KiB
169 KiB