-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Support generating interface files separately (and before) compiled code #39541
Comments
@DemiMarie, |
I think I've suggested something like this before: https://internals.rust-lang.org/t/pre-rfc-generate-headers-for-greater-parallelism/4523 |
As mentioned on that thread, the potential benefits of this idea will probably fall out of #38913 and incremental compilation or at least have to wait until both of those make more progress. |
This is good for doing a "proof by construction" public-in-private check. |
Triage: there's been some work on some stuff like this recently, I think? |
@steveklabnik Yeah I'd say this issue is resolved in favour of #60988 |
Ah yes, that's the issue, thank you for finding it! If anyone objects, please let me know, but I believe this is a duplicate of that. |
Rustc generates files containing both interface information (needed to compile other crates) and compiled object code (needed for linking only). Currently, any multi-crate build cannot start compiling other crates until both are available, since they are combined into one file.
However, there is no fundamental need for other crates to wait on the compiled object code. They really only need to wait on the interface information. This issue covers making the interface information available sooner, and providing a way to notify another process (perhaps by writing to a file descriptor/handle) when it is available.
The text was updated successfully, but these errors were encountered: