From f2c78dabf5260f426d9b0faeebae02522a99b8f7 Mon Sep 17 00:00:00 2001 From: Vadim Chugunov Date: Sun, 7 Sep 2014 13:19:55 -0700 Subject: Use DWARF4 on Windows. --- src/librustc/middle/trans/debuginfo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc/middle/trans/debuginfo.rs b/src/librustc/middle/trans/debuginfo.rs index b640f9ef5af..7600e40edc0 100644 --- a/src/librustc/middle/trans/debuginfo.rs +++ b/src/librustc/middle/trans/debuginfo.rs @@ -739,7 +739,7 @@ pub fn finalize(cx: &CrateContext) { cx.sess().targ_cfg.os == abi::OsiOS { "Dwarf Version".with_c_str( |s| llvm::LLVMRustAddModuleFlag(cx.llmod(), s, 2)); - } else { + } else if cx.sess().targ_cfg.os == abi::OsLinux { // FIXME(#13611) this is a kludge fix because the Linux bots have // gdb 7.4 which doesn't understand dwarf4, we should // do something more graceful here. -- cgit 1.4.1-3-g733a5