Auto merge of #2642 - Rageking8:followup-for-pr-2640, r=RalfJung

Followup for pr 2640

r? `@RalfJung`
This commit is contained in:
bors 2022-10-31 09:14:30 +00:00
commit 02c5dedb60

View file

@ -528,7 +528,7 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
cmd.args(binary_args);
// Make sure we use the build-time working directory for interpreting Miri/rustc arguments.
// But then we need to switch to the run-time one, which we instruct Miri do by setting `MIRI_CWD`.
// But then we need to switch to the run-time one, which we instruct Miri to do by setting `MIRI_CWD`.
cmd.current_dir(info.current_dir);
cmd.env("MIRI_CWD", env::current_dir().unwrap());