Use dwarf 3 for osx

This commit is contained in:
Kitsu 2020-04-18 16:05:20 +03:00
parent 5c0e34d7ab
commit 1e472531c6

View File

@ -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,
};