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:
bors 2017-06-24 14:43:01 +00:00
commit c9bb93576d
1 changed files with 4 additions and 0 deletions

View File

@ -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
}