Skip to content

Commit

Permalink
auto merge of rust-lang#10198 : alexcrichton/rust/darwin-quiet, r=jdm
Browse files Browse the repository at this point in the history
Instead of running dsymutil for all builds, this changes it to only run the program for debug builds.

Closes rust-lang#3495
  • Loading branch information
bors committed Nov 12, 2013
2 parents 4320a0c + 64afa4e commit 3403503
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/librustc/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,8 +955,9 @@ pub fn link_binary(sess: Session,
sess.abort_if_errors();
}

// Clean up on Darwin
if sess.targ_cfg.os == abi::OsMacos {
// On OSX, debuggers needs this utility to get run to do some munging of the
// symbols
if sess.targ_cfg.os == abi::OsMacos && sess.opts.debuginfo {
// FIXME (#9639): This needs to handle non-utf8 paths
run::process_status("dsymutil", [output.as_str().unwrap().to_owned()]);
}
Expand Down

0 comments on commit 3403503

Please sign in to comment.