Skip to content

Commit

Permalink
Auto merge of #42864 - slo1:attempt, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Saves created temp directory if save-temps option is used.

Should fix #38068.
  • Loading branch information
bors committed Jun 24, 2017
2 parents 3cf9f5d + a5c29cb commit c9bb935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc_trans/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit c9bb935

Please sign in to comment.