Skip to content
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

Implement the panic profile option #2687

Merged
merged 1 commit into from
May 21, 2016
Merged

Commits on May 20, 2016

  1. Implement the panic profile option

    This is the Cargo half of the implementation of [RFC 1513] which adds a new
    `profile.*.panic` option to customize the `-C panic` argument to the compiler.
    This is not passed by default and can otherwise be specified as `abort` or
    `unwind` on the nightly compiler.
    
    [RFC 1513]: rust-lang/rfcs#1513
    
    The `profile.*.panic` option is *only* used from the top-level crate, not each
    crate individually. This means that applications should customize this value as
    they see fit, and libraries will only use their own value when they're being
    tested.
    
    Cargo also has specific knowledge that when *testing* a crate it can't pass
    `-C panic=abort` for now as the default test harness requires `panic=unwind`.
    This essentially just means that `cargo test` will continue to work for crates
    that specify `panic=abort` in Cargo.toml.
    alexcrichton committed May 20, 2016
    Configuration menu
    Copy the full SHA
    75848a2 View commit details
    Browse the repository at this point in the history