Skip to content

Commit 4b9dc49

Browse files
committed
Allow check builds with binaries for the dummy codegen backend
1 parent 6906167 commit 4b9dc49

File tree

1 file changed

+1
-0
lines changed
  • compiler/rustc_interface/src

1 file changed

+1
-0
lines changed

compiler/rustc_interface/src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@ impl CodegenBackend for DummyCodegenBackend {
421421
.crate_types
422422
.iter()
423423
.find(|&&crate_type| crate_type != CrateType::Rlib)
424+
&& outputs.outputs.should_link()
424425
{
425426
#[allow(rustc::untranslatable_diagnostic)]
426427
#[allow(rustc::diagnostic_outside_of_impl)]

0 commit comments

Comments
 (0)