Skip to content

Commit d5419f1

Browse files
committed
Auto merge of #148299 - bjorn3:dummy_backend_check_builds, r=jieyouxu
Allow check builds with binaries for the dummy codegen backend This is likely the last part necessary for rust-lang/miri#4648. Miri needs to be able to do a regular check build for compile_fail doc tests to work.
2 parents 8205e6b + 4b9dc49 commit d5419f1

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)