diff options
| author | Vadim Chugunov <vadimcn@gmail.com> | 2014-09-07 13:19:55 -0700 |
|---|---|---|
| committer | Vadim Chugunov <vadimcn@gmail.com> | 2014-09-10 16:52:23 -0700 |
| commit | f2c78dabf5260f426d9b0faeebae02522a99b8f7 (patch) | |
| tree | 130aa6cc1f79f8ea414fc94c734c47f97febf84e | |
| parent | 127c75e5bbc283643637892c9f7bc801b11409ee (diff) | |
Use DWARF4 on Windows.
| -rw-r--r-- | src/librustc/middle/trans/debuginfo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
