Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lehmann <dadschoorse@gmail.com>2021-07-24 23:54:53 +0300
committerPhilip Rebohle <25567304+doitsujin@users.noreply.github.com>2021-07-25 19:18:14 +0300
commita9c185d01abe6cd4dd60bf4acbbade9399698f95 (patch)
tree07f5979d1544d5dd83d78f69ac1d9dc2fe5dc4e1 /meson.build
parentb4e6f81cb5ae108ff77cdee0332b561175278049 (diff)
[build] Enable strict dwarf2 debug symbols for Wine back traces
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 2bf170cd..df995a7c 100644
--- a/meson.build
+++ b/meson.build
@@ -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')