mirror of https://github.com/rust-lang/rust.git
Auto merge of #42864 - slo1:attempt, r=Mark-Simulacrum
Saves created temp directory if save-temps option is used. Should fix #38068.
This commit is contained in:
commit
c9bb93576d
|
@ -431,6 +431,10 @@ fn link_binary_output(sess: &Session,
|
|||
out_filenames.push(out_filename);
|
||||
}
|
||||
|
||||
if sess.opts.cg.save_temps {
|
||||
let _ = tmpdir.into_path();
|
||||
}
|
||||
|
||||
out_filenames
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue