From ac9ba3ed1d43db21ef3100bd224a2beadd709658 Mon Sep 17 00:00:00 2001 From: Nicolas Adenis-Lamarre Date: Wed, 23 Mar 2022 21:21:15 +0000 Subject: [PATCH] fix vulkan Signed-off-by: Nicolas Adenis-Lamarre --- src/meson.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/meson.build b/src/meson.build index e6c817fdc19..b5b4aa39068 100644 --- a/src/meson.build +++ b/src/meson.build @@ -154,6 +154,10 @@ if is_unixy endif endif +if get_option('use_vulkan') + pre_args += '-DHAVE_VULKAN' +endif + link_args = cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro', '-Wl,--exclude-libs,ALL', '-lGL']) # meson fails to check version-script so just force add link_args += '-Wl,--version-script,@0@'.format(join_paths(meson.current_source_dir(), 'mangohud.version')) @@ -308,10 +312,6 @@ if get_option('include_doc') ) endif -if get_option('use_vulkan') - pre_args += '-DHAVE_VULKAN' -endif - configure_file(input : 'app/layer.json.in', output : 'libMangoApp.json', configuration : {'ld_libdir_mangohud' : ld_libdir_mangohud_vk},