Skip to content

Commit e12d4bc

Browse files
committed
build libstd with minimal features
1 parent fe17695 commit e12d4bc

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)