Skip to content

Commit 2a5f3ee

Browse files
committed
Make --emit=metadata output metadata regardless of link
1 parent 5092c6b commit 2a5f3ee

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/librustc_trans/back/link.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ pub(crate) fn link_binary(sess: &Session,
146146
let mut out_filenames = Vec::new();
147147
for &crate_type in sess.crate_types.borrow().iter() {
148148
// 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 {
149+
if sess.opts.debugging_opts.no_trans && crate_type == config::CrateTypeExecutable {
152150
continue;
153151
}
154152

0 commit comments

Comments
 (0)