meson: move the generic symbols check arguments to a common variable

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviwed-by: Dylan Baker <dylan@pnwbakers>
This commit is contained in:
Eric Engestrom 2019-10-29 21:32:05 +00:00
parent 2c4395e61c
commit 2f652e0b36
9 changed files with 9 additions and 8 deletions

View File

@ -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

View File

@ -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'],
)

View File

@ -197,7 +197,7 @@ if with_symbols_check
args : [
'--lib', libegl,
'--symbols-file', egl_symbols,
'--nm', prog_nm.path(),
symbols_check_args,
],
suite : ['egl'],
)

View File

@ -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'],
)

View File

@ -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'],
)

View File

@ -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'],
)

View File

@ -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'],
)

View File

@ -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'],
)

View File

@ -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'],
)