Skip to content

Commit f2c78da

Browse files
committed
Use DWARF4 on Windows.
1 parent 127c75e commit f2c78da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/middle/trans/debuginfo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ pub fn finalize(cx: &CrateContext) {
739739
cx.sess().targ_cfg.os == abi::OsiOS {
740740
"Dwarf Version".with_c_str(
741741
|s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 2));
742-
} else {
742+
} else if cx.sess().targ_cfg.os == abi::OsLinux {
743743
// FIXME(#13611) this is a kludge fix because the Linux bots have
744744
// gdb 7.4 which doesn't understand dwarf4, we should
745745
// do something more graceful here.

0 commit comments

Comments
 (0)