]> git.lizzy.rs Git - rust.git/commitdiff
Use DWARF4 on Windows.
authorVadim Chugunov <vadimcn@gmail.com>
Sun, 7 Sep 2014 20:19:55 +0000 (13:19 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Wed, 10 Sep 2014 23:52:23 +0000 (16:52 -0700)
src/librustc/middle/trans/debuginfo.rs

index b640f9ef5af11dfb5cb6640666de6bd6824e1fc7..7600e40edc034fc0a6453fcf079dccfcbc86b43c 100644 (file)
@@ -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.