-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[ParseableInterface] Serialize module into buffer and load from it #23173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ParseableInterface] Serialize module into buffer and load from it #23173
Conversation
789b52f to
c3b8f15
Compare
|
Really amazing comments in this patch! |
c3b8f15 to
43ca89a
Compare
68009f7 to
75515ff
Compare
75515ff to
71eb4f1
Compare
|
@swift-ci please smoke test |
jrose-apple
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the safety of std::unique_ptr a lot here. Ownership FTW!
benlangmuir
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Harlan!
In addition to being wasteful, this is a correctness issue -- the compiler should only ever have one view of this file, and it should not read a potentially different file after validating dependencies. rdar://48654608
481ff9c to
7bdf542
Compare
|
@swift-ci please test |
|
Build failed |
|
@jrose-apple Are these ClangImporter changes okay? |
|
@swift-ci please smoke test Linux |
5d897b8 to
18aee59
Compare
|
@swift-ci please smoke test Linux |
|
@swift-ci please smoke test macOS |
|
Seems like the Linux bot had issues. Let's try again. @swift-ci please smoke test Linux |
18aee59 to
7e22618
Compare
Previously, we would assert that there's a runtime resource dir available, but then accept the possibility of no glibc.modulemap. We should just do the same thing for 'no resource dir' as 'no module map'.
7e22618 to
5a29cdc
Compare
|
@swift-ci please test and merge |
|
@swift-ci please test |
|
Build failed |
|
Build failed |
…-system [ParseableInterface] Serialize module into buffer and load from it
…-system [ParseableInterface] Serialize module into buffer and load from it
In addition to being wasteful, this is a correctness issue -- the
compiler should only ever have one view of this file, and it should not
read a potentially different file after validating dependencies.
rdar://48654608