Skip to content

Commit

Permalink
build: Switch symbols to DWARF 4
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ishitatsuyuki committed Jun 30, 2023
1 parent 0f4458e commit 9098e62
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9098e62

Please sign in to comment.