Skip to content

Commit

Permalink
Saves created temp directory if save-temps option is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
slo1 committed Jun 23, 2017
1 parent bd32b1b commit a5c29cb
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 a5c29cb

Please sign in to comment.