mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Always list the bridging header before any imports
This mirrors how a bridging header is processed when compiling source files: before any of the imports. This is important for LLDB to recreate the source environment as closely as possible to how the compiler does it; in the test case being added involving a non-modular header file, failure to do so resulted in a deserialization cross-reference crash. Note that Serialization still sorts imports, which normal resolution of imports in source does not do. So we're still not consistent. But this is less important than handling textual includes (bridging headers) before modular imports. rdar://problem/40471329
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
module Module {
|
||||
umbrella header "modular.h"
|
||||
module * { export * }
|
||||
}
|
||||
Reference in New Issue
Block a user