rusticl/meson: extract common bindgen rust args

Signed-off-by: Karol Herbst <git@karolherbst.de>
Reviewed-by: Nora Allen <blackcatgames@protonmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21612>
This commit is contained in:
Karol Herbst 2023-06-24 10:59:16 +02:00 committed by Marge Bot
parent c896373889
commit 29b932512a

View file

@ -94,6 +94,9 @@ rusticl_args = [
rusticl_gen_args = [
# can't do anything about it anyway
'-Aclippy::all',
'-Anon_camel_case_types',
'-Anon_snake_case',
'-Anon_upper_case_globals',
]
rusticl_bindgen_args = [
@ -164,9 +167,6 @@ rusticl_opencl_gen = static_library(
rust_crate_type : 'rlib',
rust_args : [
rusticl_gen_args,
'-Anon_snake_case',
'-Anon_camel_case_types',
'-Anon_upper_case_globals',
],
)
@ -307,9 +307,6 @@ libmesa_rust_gen = static_library(
rust_crate_type : 'rlib',
rust_args : [
rusticl_gen_args,
'-Anon_snake_case',
'-Anon_camel_case_types',
'-Anon_upper_case_globals',
],
)