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

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2022-06-24 10:13:01 +0300
committerJens Peters <jp7677@gmail.com>2022-06-24 10:13:01 +0300
commitbd7b3b75294866c4597d1556c7da673e76c1a407 (patch)
treea69d05dcf514dfcee9e8d9ede2fa2cc4d99fd842
parent6a56f06b6dc2974e83355d52d10a695ad242fcc1 (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.build6
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()