Bläddra i källkod

meson: add variable to control the symbols checks

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviwed-by: Dylan Baker <dylan@pnwbakers>
merge-requests/2610/head
Eric Engestrom 5 år sedan
förälder
incheckning
2c4395e61c

+ 1
- 0
meson.build Visa fil

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

+ 1
- 1
src/amd/vulkan/meson.build Visa fil

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

+ 1
- 1
src/egl/meson.build Visa fil

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

+ 1
- 1
src/freedreno/vulkan/meson.build Visa fil

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

+ 1
- 1
src/gbm/meson.build Visa fil

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

+ 1
- 1
src/intel/vulkan/meson.build Visa fil

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

+ 1
- 1
src/mapi/es1api/meson.build Visa fil

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

+ 1
- 1
src/mapi/es2api/meson.build Visa fil

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

+ 1
- 1
src/mapi/shared-glapi/meson.build Visa fil

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

Laddar…
Avbryt
Spara