Skip to content

Commit 5aa15b6

Browse files
committed
miri: do not forward RUSTFLAGS to deps build
1 parent 38847ae commit 5aa15b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/miri/tests/compiletest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ fn test_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
111111
"run".into(), // There is no `cargo miri build` so we just use `cargo miri run`.
112112
]);
113113
config.dependency_builder.args = builder_args.into_iter().map(Into::into).collect();
114+
// Reset `RUSTFLAGS` to work around <https://github.com/rust-lang/rust/pull/119574#issuecomment-1876878344>.
115+
config.dependency_builder.envs.push(("RUSTFLAGS".into(), None));
114116
}
115117
config
116118
}

0 commit comments

Comments
 (0)