Skip to content

Commit

Permalink
build libstd with minimal features
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Dec 2, 2018
1 parent fe17695 commit e12d4bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bin/cargo-miri.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ fn setup(ask_user: bool) {
File::create(dir.join("Xargo.toml")).unwrap()
.write_all(br#"
[dependencies.std]
default_features = false
# We need the `panic_unwind` feature because we use the `unwind` panic strategy.
# Using `abort` works for libstd, but then libtest will not compile.
features = ["panic_unwind"]
[dependencies.test]
Expand Down

0 comments on commit e12d4bc

Please sign in to comment.