We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5092c6b commit 2a5f3eeCopy full SHA for 2a5f3ee
src/librustc_trans/back/link.rs
@@ -146,9 +146,7 @@ pub(crate) fn link_binary(sess: &Session,
146
let mut out_filenames = Vec::new();
147
for &crate_type in sess.crate_types.borrow().iter() {
148
// Ignore executable crates if we have -Z no-trans, as they will error.
149
- if (sess.opts.debugging_opts.no_trans ||
150
- !sess.opts.output_types.should_trans()) &&
151
- crate_type == config::CrateTypeExecutable {
+ if sess.opts.debugging_opts.no_trans && crate_type == config::CrateTypeExecutable {
152
continue;
153
}
154
0 commit comments