build: Switch symbols to DWARF 4

Since [1], Wine's supports and uses DWARF 4 as default. Make use of it, which
should fix inlined stacks and some other small details.

[1]: https://www.winehq.org/pipermail/wine-devel/2021-November/201333.html
This commit is contained in:
Tatsuyuki Ishi 2023-06-30 17:18:29 +09:00 committed by Philip Rebohle
parent 0f4458e173
commit 2ef41bdbf6
1 changed files with 2 additions and 3 deletions

View File

@ -57,11 +57,10 @@ if platform == 'windows'
'-Wl,--file-alignment=4096',
]
# Wine's built-in back traces only work with dwarf2 symbols
# Wine's built-in back traces only work with dwarf4 symbols
if get_option('debug')
compiler_args += [
'-gstrict-dwarf',
'-gdwarf-2',
'-gdwarf-4',
]
endif