Skip to content

Commit

Permalink
Reformat trans skip condition
Browse files Browse the repository at this point in the history
  • Loading branch information
varkor committed Apr 10, 2018
1 parent 8056506 commit 7575d96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_trans/back/link.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ pub(crate) fn link_binary(sess: &Session,
for &crate_type in sess.crate_types.borrow().iter() {
// Ignore executable crates if we have -Z no-trans, as they will error.
let output_metadata = sess.opts.output_types.contains_key(&OutputType::Metadata);
let ignore_executable = sess.opts.debugging_opts.no_trans ||
!(sess.opts.output_types.should_trans() || output_metadata);
if crate_type == config::CrateTypeExecutable && ignore_executable {
if (sess.opts.debugging_opts.no_trans || !sess.opts.output_types.should_trans()) &&
!output_metadata &&
crate_type == config::CrateTypeExecutable {
continue;
}

Expand Down

0 comments on commit 7575d96

Please sign in to comment.