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>2021-04-11 20:18:02 +0300
committerJens Peters <jp7677@gmail.com>2021-04-11 20:18:02 +0300
commitea93ed61eefcc8ac6456c90fcb01cc544ce1cdd3 (patch)
tree29f15587fdf90780edb3319412929f22cd6583b1 /meson.build
parent555f4bcf1e5eaa2093570e99f2cf9a61f88175e3 (diff)
Configure file-alignment.
Taken from https://github.com/doitsujin/dxvk/commit/aae889ccd9411eb457ad901c7f6a8d59ee092e3b
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index 07c73f7..16c1234 100644
--- a/meson.build
+++ b/meson.build
@@ -8,6 +8,10 @@ project('dxvk-nvapi',
meson_version : '>= 0.46')
dxvk_compiler = meson.get_compiler('cpp')
+if dxvk_compiler.has_link_argument('-Wl,--file-alignment=4096')
+ add_global_link_arguments('-Wl,--file-alignment=4096', language: 'cpp')
+endif
+
dxvk_cpu_family = target_machine.cpu_family()
if (dxvk_cpu_family == 'x86_64')
dxvk_library_path = meson.source_root() + '/lib'