mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-20 23:28:23 +02:00
compiler/rust: move ACORN PRNG to shared location
Move the ACORN random number generator from src/nouveau/compiler/acorn/ to src/compiler/rust/acorn/ so it can be shared between different driver hardware test infrastructures. Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com> Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Lorenzo Rossi <lorenzo.rossi@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42165>
This commit is contained in:
parent
d7f8097adf
commit
011c7a1c2c
3 changed files with 13 additions and 15 deletions
|
|
@ -172,6 +172,18 @@ if with_tests and get_option('b_sanitize') == 'none'
|
|||
)
|
||||
endif
|
||||
|
||||
_libacorn_rs = static_library(
|
||||
'acorn',
|
||||
files('acorn/lib.rs'),
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
rust_abi : 'rust',
|
||||
rust_args : _compiler_rust_args,
|
||||
)
|
||||
|
||||
idep_acorn_rs = declare_dependency(
|
||||
link_with : _libacorn_rs,
|
||||
)
|
||||
|
||||
idep_compiler_rs = declare_dependency(
|
||||
link_with : _libcompiler_rs,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -33,18 +33,6 @@ libnak_c_files = files(
|
|||
'nak_nir_rematerialize_load_const.c',
|
||||
)
|
||||
|
||||
_libacorn_rs = static_library(
|
||||
'acorn',
|
||||
files('acorn/lib.rs'),
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
rust_abi : 'rust',
|
||||
rust_args : nouveau_rust_args,
|
||||
)
|
||||
|
||||
idep_acorn_rs = declare_dependency(
|
||||
link_with : _libacorn_rs,
|
||||
)
|
||||
|
||||
libnak_deps = [
|
||||
idep_mesautil,
|
||||
idep_nir_headers,
|
||||
|
|
@ -147,13 +135,11 @@ if with_tests and get_option('b_sanitize') == 'none' and not with_platform_andro
|
|||
idep_compiler.partial_dependency(link_args : true, links : true),
|
||||
idep_mesautil.partial_dependency(link_args : true, links : true),
|
||||
idep_nv_push_rs,
|
||||
idep_acorn_rs,
|
||||
],
|
||||
# This is needed to ensure we link against glibc
|
||||
# See also https://gitlab.freedesktop.org/mesa/mesa/-/issues/11632
|
||||
rust_args: ['-C', 'default-linker-libraries'],
|
||||
link_with: [
|
||||
_libacorn_rs,
|
||||
],
|
||||
)
|
||||
endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue