From: Eric Engestrom Date: Tue, 29 Oct 2019 21:32:05 +0000 (+0000) Subject: meson: move the generic symbols check arguments to a common variable X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f652e0b3691e94d6a81e37985741d35561b2312;p=mesa.git meson: move the generic symbols check arguments to a common variable Signed-off-by: Eric Engestrom Reviwed-by: Dylan Baker --- diff --git a/meson.build b/meson.build index dcc4827fed7..020f725116f 100644 --- a/meson.build +++ b/meson.build @@ -1682,6 +1682,7 @@ pkg = import('pkgconfig') prog_nm = find_program('nm', required : false) with_symbols_check = prog_nm.found() and with_tests +symbols_check_args = ['--nm', prog_nm.path()] # This quirk needs to be applied to sources with functions defined in assembly # as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391 diff --git a/src/amd/vulkan/meson.build b/src/amd/vulkan/meson.build index 732659fb644..54d2f319f0b 100644 --- a/src/amd/vulkan/meson.build +++ b/src/amd/vulkan/meson.build @@ -173,7 +173,7 @@ if with_symbols_check args : [ '--lib', libvulkan_radeon, '--symbols-file', vulkan_icd_symbols, - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['amd'], ) diff --git a/src/egl/meson.build b/src/egl/meson.build index e691f509067..12d74ec37fa 100644 --- a/src/egl/meson.build +++ b/src/egl/meson.build @@ -197,7 +197,7 @@ if with_symbols_check args : [ '--lib', libegl, '--symbols-file', egl_symbols, - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['egl'], ) diff --git a/src/freedreno/vulkan/meson.build b/src/freedreno/vulkan/meson.build index d7f91d24358..70efd26008b 100644 --- a/src/freedreno/vulkan/meson.build +++ b/src/freedreno/vulkan/meson.build @@ -126,7 +126,7 @@ if with_symbols_check args : [ '--lib', libvulkan_freedreno, '--symbols-file', vulkan_icd_symbols, - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['freedreno'], ) diff --git a/src/gbm/meson.build b/src/gbm/meson.build index c4b1c25f9d1..ed4310d6598 100644 --- a/src/gbm/meson.build +++ b/src/gbm/meson.build @@ -73,7 +73,7 @@ if with_symbols_check args : [ '--lib', libgbm, '--symbols-file', files('gbm-symbols.txt'), - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['gbm'], ) diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build index a829361e926..c21d7bd2507 100644 --- a/src/intel/vulkan/meson.build +++ b/src/intel/vulkan/meson.build @@ -214,7 +214,7 @@ if with_symbols_check args : [ '--lib', libvulkan_intel, '--symbols-file', vulkan_icd_symbols, - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['intel'], ) diff --git a/src/mapi/es1api/meson.build b/src/mapi/es1api/meson.build index b2dcd5413ad..711048421b8 100644 --- a/src/mapi/es1api/meson.build +++ b/src/mapi/es1api/meson.build @@ -69,7 +69,7 @@ if with_symbols_check args : [ '--lib', libglesv1_cm, '--symbols-file', files('gles1-symbols.txt'), - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['mapi'], ) diff --git a/src/mapi/es2api/meson.build b/src/mapi/es2api/meson.build index 119e8d36a75..ac79aa66f89 100644 --- a/src/mapi/es2api/meson.build +++ b/src/mapi/es2api/meson.build @@ -69,7 +69,7 @@ if with_symbols_check args : [ '--lib', libgles2, '--symbols-file', files('gles2-symbols.txt'), - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['mapi'], ) diff --git a/src/mapi/shared-glapi/meson.build b/src/mapi/shared-glapi/meson.build index 27ae6bcc158..5b9db0c081a 100644 --- a/src/mapi/shared-glapi/meson.build +++ b/src/mapi/shared-glapi/meson.build @@ -81,7 +81,7 @@ if with_any_opengl and with_tests args : [ '--lib', libglapi, '--symbols-file', files('glapi-symbols.txt'), - '--nm', prog_nm.path(), + symbols_check_args, ], suite : ['mapi'], )