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

meson: add variable to control the symbols checks

Signed-off-by: Eric Engestrom's avatarEric Engestrom <eric.engestrom@intel.com>
Reviwed-by: default avatarDylan Baker <dylan@pnwbakers>
parent 67718ca3
......@@ -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,
......
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