-
Notifications
You must be signed in to change notification settings - Fork 349
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
Set MIRIFLAGS from .cargo/config.toml #2347
Comments
Ah yes that makes a lot of sense. Two notes:
|
It's already exposed by Cargo: $ cargo -Zunstable-options config get miri.flags --format=json-value
["-Zmiri-disable-isolation"] It handles the usual cascading/merging of whatever files Cargo normally looks in ($WORKSPACE/.cargo/config, $WORKSPACE/.cargo/config.toml, ~/.cargo/config, ~/.cargo/config.toml, etc(?)). Tracking issue rust-lang/cargo#9301 but I assume you don't require this to be stable given you're pinned to nightly anyway. |
Wow, that's cool! |
#2451 contains a draft implementation of this feature, but needs a bit of work to be finished -- see the PR comments for details. |
You can pass flags to rustc with
build.rustflags
, and to rustdoc withbuild.rustdocflags
.Supporting MIRIFLAGS the same way would be nice. Most of the time I want to run every miri invocation for a project with a particular flag like
-Zmiri-disable-isolation
, so just setting it globally for the workspace would be ideal.Related issue for MIRIFLAGS as command line arguments: #2051
The text was updated successfully, but these errors were encountered: