We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad3de7f commit 426d701Copy full SHA for 426d701
src/librustc/middle/trans/debuginfo.rs
@@ -279,6 +279,12 @@ pub fn finalize(cx: &CrateContext) {
279
if cx.sess().targ_cfg.os == abi::OsMacos {
280
"Dwarf Version".with_c_str(
281
|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));
288
}
289
290
// Prevent bitcode readers from deleting the debug info.
0 commit comments