Module: Mesa
Branch: main
Commit: 29b932512a873abb932e2fde99081d705bf9d465
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=29b932512a873abb932e2fde99081d705bf9d465

Author: Karol Herbst <[email protected]>
Date:   Sat Jun 24 10:59:16 2023 +0200

rusticl/meson: extract common bindgen rust args

Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Nora Allen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21612>

---

 src/gallium/frontends/rusticl/meson.build | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/src/gallium/frontends/rusticl/meson.build 
b/src/gallium/frontends/rusticl/meson.build
index 696839d504f..5fa5c3f9648 100644
--- a/src/gallium/frontends/rusticl/meson.build
+++ b/src/gallium/frontends/rusticl/meson.build
@@ -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',
   ],
 )
 

Reply via email to