Skip to content

Commit 6c4350d

Browse files
committed
cg_clif: fix build with split dwarf
This commit makes minor changes to the cranelift backend so that it can build given changes in cg_ssa for Split DWARF. Signed-off-by: David Wood <[email protected]>
1 parent e3fdae9 commit 6c4350d

File tree

1 file changed

+3
-0
lines changed
  • compiler/rustc_codegen_cranelift/src/driver

1 file changed

+3
-0
lines changed

compiler/rustc_codegen_cranelift/src/driver/aot.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ fn emit_module(
7575
name,
7676
kind,
7777
object: Some(tmp_file),
78+
dwarf_object: None,
7879
bytecode: None,
7980
},
8081
work_product,
@@ -111,6 +112,7 @@ fn reuse_workproduct_for_cgu(
111112
name: cgu.name().to_string(),
112113
kind: ModuleKind::Regular,
113114
object,
115+
dwarf_object: None,
114116
bytecode: None,
115117
}
116118
}
@@ -290,6 +292,7 @@ pub(super) fn run_aot(
290292
name: metadata_cgu_name,
291293
kind: ModuleKind::Metadata,
292294
object: Some(tmp_file),
295+
dwarf_object: None,
293296
bytecode: None,
294297
})
295298
} else {

0 commit comments

Comments
 (0)