Skip to content

Commit c9bb212

Browse files
authored
Merge pull request #560 from RalfJung/libstd-features
build libstd with minimal features
2 parents fe17695 + e12d4bc commit c9bb212

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/cargo-miri.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ fn setup(ask_user: bool) {
155155
File::create(dir.join("Xargo.toml")).unwrap()
156156
.write_all(br#"
157157
[dependencies.std]
158+
default_features = false
159+
# We need the `panic_unwind` feature because we use the `unwind` panic strategy.
160+
# Using `abort` works for libstd, but then libtest will not compile.
158161
features = ["panic_unwind"]
159162
160163
[dependencies.test]

0 commit comments

Comments
 (0)