Skip to content

Commit 98fff20

Browse files
committed
stop clamping the DWARF version to 3 on Linux
Closes #13611
1 parent 28407b6 commit 98fff20

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/librustc/middle/trans/debuginfo.rs

-6
Original file line numberDiff line numberDiff line change
@@ -738,12 +738,6 @@ pub fn finalize(cx: &CrateContext) {
738738
cx.sess().targ_cfg.os == abi::OsiOS {
739739
"Dwarf Version".with_c_str(
740740
|s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 2));
741-
} else if cx.sess().targ_cfg.os == abi::OsLinux {
742-
// FIXME(#13611) this is a kludge fix because the Linux bots have
743-
// gdb 7.4 which doesn't understand dwarf4, we should
744-
// do something more graceful here.
745-
"Dwarf Version".with_c_str(
746-
|s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 3));
747741
}
748742

749743
// Prevent bitcode readers from deleting the debug info.

0 commit comments

Comments
 (0)