Skip to content

Set MIRIFLAGS from .cargo/config.toml #2347

Open
@dtolnay

Description

@dtolnay

You can pass flags to rustc with build.rustflags, and to rustdoc with build.rustdocflags.

[build]
rustflags = ["-C", "target-cpu=native"]

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.

[miri]
miriflags = ["-Zmiri-disable-isolation"]

Related issue for MIRIFLAGS as command line arguments: #2051

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cargoArea: affects the cargo wrapper (cargo miri)C-enhancementCategory: a PR with an enhancement or an issue tracking an accepted enhancementE-good-first-issueA good way to start contributing, mentoring is available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions