-
Notifications
You must be signed in to change notification settings - Fork 414
Call rustc_driver::main() for MIRI_BE_RUSTC=host #4731
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
base: master
Are you sure you want to change the base?
Conversation
This way we don't need a special case in MiriBeRustCompilerCalls.
|
Thank you for contributing to Miri! A reviewer will take a look at your PR, typically within a week or two. |
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.
Good call, I like the general approach. We can also update a bunch of comments and names then, I think.
src/bin/miri.rs
Outdated
| // builds, but we are setting `-Zalways-encode-mir` which avoids those issues. | ||
| let _ = tcx.collect_and_partition_mono_items(()); | ||
| } | ||
| // cargo-miri has patched the compiler flags to make these into check-only builds, |
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.
That's not even correct any more, is it? You removed that flag patching in #4648.
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.
The call is still necessary here as DummyCodegenBackend doesn't have it. I will update the comment though.
Co-Authored-By: Ralf Jung <post@ralfj.de>
|
That's annoying that we can't use |
This way we don't need a special case in
MiriBeRustCompilerCalls.