Commit 2f652e0b authored by Eric Engestrom's avatar Eric Engestrom

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

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviwed-by: default avatarDylan Baker <dylan@pnwbakers>
parent 2c4395e6
......@@ -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
......
......@@ -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'],
)
......
......@@ -197,7 +197,7 @@ if with_symbols_check
args : [
'--lib', libegl,
'--symbols-file', egl_symbols,
'--nm', prog_nm.path(),
symbols_check_args,
],
suite : ['egl'],
)
......
......@@ -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'],
)
......
......@@ -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'],
)
......
......@@ -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'],
)
......
......@@ -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'],
)
......
......@@ -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'],
)
......
......@@ -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'],
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment