Use dwarf 3 for osx
This commit is contained in:
parent
5c0e34d7ab
commit
1e472531c6
@ -47,7 +47,11 @@ pub(crate) fn new(tcx: TyCtxt<'tcx>, address_size: u8) -> Self {
|
||||
// TODO: this should be configurable
|
||||
// macOS doesn't seem to support DWARF > 3
|
||||
// 5 version is required for md5 file hash
|
||||
version: 5,
|
||||
version: if tcx.sess.target.target.options.is_like_osx {
|
||||
3
|
||||
} else {
|
||||
5
|
||||
},
|
||||
address_size,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user