Skip to content

Commit 3909a8a

Browse files
committed
---
yaml --- r: 111411 b: refs/heads/master c: 426d701 h: refs/heads/master i: 111409: f2c3a0d 111407: b6e0b41 v: v3
1 parent ce5f1c3 commit 3909a8a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: ad3de7fdb58cb2beb06780794006b4184807c75e
2+
refs/heads/master: 426d701f8bbd22aa22fefb69d71eaa7dc8bbe170
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b5dd3f05fe95168b5569d0f519636149479eb6ac
55
refs/heads/try: 38201d7c6bf0c32b0e5bdc8ecd63976ebc1b3a4c

trunk/src/librustc/middle/trans/debuginfo.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,12 @@ pub fn finalize(cx: &CrateContext) {
279279
if cx.sess().targ_cfg.os == abi::OsMacos {
280280
"Dwarf Version".with_c_str(
281281
|s| llvm::LLVMRustAddModuleFlag(cx.llmod, s, 2));
282+
} else {
283+
// FIXME(#13611) this is a kludge fix because the linux bots have
284+
// gdb 7.4 which doesn't understand dwarf4, we should
285+
// do something more graceful here.
286+
"Dwarf Version".with_c_str(
287+
|s| llvm::LLVMRustAddModuleFlag(cx.llmod, s, 3));
282288
}
283289

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

0 commit comments

Comments
 (0)