Skip to content

Commit

Permalink
[build] Enable strict dwarf2 debug symbols for Wine back traces
Browse files Browse the repository at this point in the history
  • Loading branch information
DadSchoorse authored and doitsujin committed Jul 25, 2021
1 parent b4e6f81 commit a9c185d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ if not dxvk_is_msvc
if dxvk_compiler.has_link_argument('-Wl,--file-alignment=4096')
add_global_link_arguments('-Wl,--file-alignment=4096', language: 'cpp')
endif

# Wine's built-in back traces only work with dwarf2 symbols
if get_option('debug') and target_machine.system() == 'windows'
if dxvk_compiler.has_argument('-gstrict-dwarf') and dxvk_compiler.has_argument('-gdwarf-2')
add_project_arguments('-gstrict-dwarf', '-gdwarf-2', language: ['c', 'cpp'])
endif
endif
endif

dxvk_include_path = include_directories('./include')
Expand Down

0 comments on commit a9c185d

Please sign in to comment.