mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
meson: add variable to control the symbols checks
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviwed-by: Dylan Baker <dylan@pnwbakers>
This commit is contained in:
parent
67718ca352
commit
2c4395e61c
9 changed files with 9 additions and 8 deletions
|
|
@ -1681,6 +1681,7 @@ endif
|
|||
pkg = import('pkgconfig')
|
||||
|
||||
prog_nm = find_program('nm', required : false)
|
||||
with_symbols_check = prog_nm.found() and with_tests
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@ libvulkan_radeon = shared_library(
|
|||
install : true,
|
||||
)
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'radv symbols check',
|
||||
symbols_check,
|
||||
|
|
|
|||
|
|
@ -186,7 +186,7 @@ if not with_glvnd
|
|||
)
|
||||
endif
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
if with_glvnd
|
||||
egl_symbols = files('egl-glvnd-symbols.txt')
|
||||
else
|
||||
|
|
|
|||
|
|
@ -119,7 +119,7 @@ libvulkan_freedreno = shared_library(
|
|||
install : true,
|
||||
)
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'tu symbols check',
|
||||
symbols_check,
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ pkg.generate(
|
|||
libraries_private : '-ldl', # FIXME: autotools lists this a incomplete
|
||||
)
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'gbm-symbols-check',
|
||||
symbols_check,
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ libvulkan_intel = shared_library(
|
|||
install : true,
|
||||
)
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'anv symbols check',
|
||||
symbols_check,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ pkg.generate(
|
|||
libraries_private : gl_priv_libs,
|
||||
)
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'es1-ABI-check',
|
||||
symbols_check,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ pkg.generate(
|
|||
libraries_private : gl_priv_libs,
|
||||
)
|
||||
|
||||
if with_tests and prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'es2-ABI-check',
|
||||
symbols_check,
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ if with_any_opengl and with_tests
|
|||
),
|
||||
suite : ['mapi'],
|
||||
)
|
||||
if prog_nm.found()
|
||||
if with_symbols_check
|
||||
test(
|
||||
'shared-glapi symbols check',
|
||||
symbols_check,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue