We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
x run
1 parent a316785 commit a1667a9Copy full SHA for a1667a9
src/bootstrap/src/core/build_steps/run.rs
@@ -149,12 +149,14 @@ impl Step for Miri {
149
&[],
150
);
151
miri.add_rustc_lib_path(builder);
152
- // Forward arguments.
153
miri.arg("--").arg("--target").arg(target.rustc_target_arg());
154
- miri.args(builder.config.args());
155
156
// miri tests need to know about the stage sysroot
157
- miri.env("MIRI_SYSROOT", &miri_sysroot);
+ miri.arg("--sysroot").arg(miri_sysroot);
+
+ // Forward arguments. This may contain further arguments to the program
158
+ // after another --, so this must be at the end.
159
+ miri.args(builder.config.args());
160
161
let mut miri = Command::from(miri);
162
builder.run(&mut miri);
0 commit comments