-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
miri: add -Zbinary-dep-depinfo to dependency builds #149882
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: main
Are you sure you want to change the base?
Conversation
|
The Miri subtree was changed cc @rust-lang/miri |
|
rustbot has assigned @Mark-Simulacrum. Use |
src/tools/miri/tests/ui.rs
Outdated
| // There is no `cargo miri build` so we just use `cargo miri run`. | ||
| args: ["miri", "run"].into_iter().map(Into::into).collect(), | ||
| // Add `-Zbinary-dep-depinfo` since it is needed for bootstrap builds (and doesn't harm otherwise). | ||
| args: ["miri", "run", "-Zbinary-dep-depinfo"] |
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.
@oli-obk this made me realize that we are overwriting the default arguments here: --color=never --quiet --jobs 1. Apparently things also work without these flags. In particular the -j1 is odd though -- why are parallel builds disabled by default and it is a potential issue that Miri does not disable them?
564baf0 to
0428dd5
Compare
|
Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
| // Ensure we rebuild the dependencies when the sysroot changes. | ||
| // (Bootstrap usually sets this automatically, but since we invoke cargo | ||
| // ourselves we have to do it.) | ||
| p.args.push("-Zbinary-dep-depinfo".into()); |
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 figured I would do the same thing on the clippy side as well, since it's basically the same setup as Miri.
Hopefully fixes #149711
Cc @bjorn3