Skip to content

Commit 3403503

Browse files
committed
auto merge of #10198 : alexcrichton/rust/darwin-quiet, r=jdm
Instead of running dsymutil for all builds, this changes it to only run the program for debug builds. Closes #3495
2 parents 4320a0c + 64afa4e commit 3403503

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/librustc/back/link.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -955,8 +955,9 @@ pub fn link_binary(sess: Session,
955955
sess.abort_if_errors();
956956
}
957957

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

0 commit comments

Comments
 (0)