Skip to content

Commit 1e47253

Browse files
committed
Use dwarf 3 for osx
1 parent 5c0e34d commit 1e47253

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/debuginfo/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,11 @@ impl<'tcx> DebugContext<'tcx> {
4747
// TODO: this should be configurable
4848
// macOS doesn't seem to support DWARF > 3
4949
// 5 version is required for md5 file hash
50-
version: 5,
50+
version: if tcx.sess.target.target.options.is_like_osx {
51+
3
52+
} else {
53+
5
54+
},
5155
address_size,
5256
};
5357

0 commit comments

Comments
 (0)