We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42190bb commit 3d16a20Copy full SHA for 3d16a20
compiler/rustc_codegen_llvm/src/back/write.rs
@@ -205,8 +205,11 @@ pub fn target_machine_factory(
205
let use_init_array =
206
!sess.opts.debugging_opts.use_ctors_section.unwrap_or(sess.target.use_ctors_section);
207
208
+ let path_mapping = sess.source_map().path_mapping().clone();
209
+
210
Arc::new(move |config: TargetMachineFactoryConfig| {
- let split_dwarf_file = config.split_dwarf_file.unwrap_or_default();
211
+ let split_dwarf_file =
212
+ path_mapping.map_prefix(config.split_dwarf_file.unwrap_or_default()).0;
213
let split_dwarf_file = CString::new(split_dwarf_file.to_str().unwrap()).unwrap();
214
215
let tm = unsafe {
0 commit comments