diff options
author | Jens Peters <jp7677@gmail.com> | 2022-06-24 10:13:01 +0300 |
---|---|---|
committer | Jens Peters <jp7677@gmail.com> | 2022-06-24 10:13:01 +0300 |
commit | bd7b3b75294866c4597d1556c7da673e76c1a407 (patch) | |
tree | a69d05dcf514dfcee9e8d9ede2fa2cc4d99fd842 | |
parent | 6a56f06b6dc2974e83355d52d10a695ad242fcc1 (diff) |
build: Fix debug compilation
We need 'mbig-obj' due to heavy usage of our mocking framework.
Also create symbols when building in debug configuration.
-rw-r--r-- | meson.build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 36405d7..992af16 100644 --- a/meson.build +++ b/meson.build @@ -9,6 +9,12 @@ project('dxvk-nvapi', dxvk_compiler = meson.get_compiler('cpp') add_project_arguments(dxvk_compiler.get_supported_arguments('-Wno-unused-parameter'), language : 'cpp') +if get_option('buildtype') == 'debug' + add_project_arguments(dxvk_compiler.get_supported_arguments('-gstrict-dwarf'), language : 'cpp') + add_project_arguments(dxvk_compiler.get_supported_arguments('-gdwarf-2'), language : 'cpp') + add_project_arguments(dxvk_compiler.get_supported_arguments('-Wa,-mbig-obj'), language : 'cpp') +endif + add_project_link_arguments(dxvk_compiler.get_supported_link_arguments('-Wl,--file-alignment=4096'), language: 'cpp') dxvk_cpu_family = target_machine.cpu_family() |