Make --emit=metadata output metadata regardless of link
This commit is contained in:
parent
5092c6b01a
commit
2a5f3ee0c5
1 changed files with 1 additions and 3 deletions
|
|
@ -146,9 +146,7 @@ pub(crate) fn link_binary(sess: &Session,
|
|||
let mut out_filenames = Vec::new();
|
||||
for &crate_type in sess.crate_types.borrow().iter() {
|
||||
// Ignore executable crates if we have -Z no-trans, as they will error.
|
||||
if (sess.opts.debugging_opts.no_trans ||
|
||||
!sess.opts.output_types.should_trans()) &&
|
||||
crate_type == config::CrateTypeExecutable {
|
||||
if sess.opts.debugging_opts.no_trans && crate_type == config::CrateTypeExecutable {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue