mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
rusticl: don't set size_t-is-usize for >=bindgen-0.65
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8827 Fixes:20c90fed5a("rusticl: added") Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22484> (cherry picked from commita9cce40dab)
This commit is contained in:
parent
1a81041677
commit
834a080732
2 changed files with 7 additions and 2 deletions
|
|
@ -148,7 +148,7 @@
|
|||
"description": "rusticl: don't set size_t-is-usize for >=bindgen-0.65",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "20c90fed5a0ab0202ee1ef474c71cb816164a448"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -93,7 +93,6 @@ rusticl_gen_args = [
|
|||
rusticl_bindgen_args = [
|
||||
'--no-convert-floats',
|
||||
'--use-array-pointers-in-arguments',
|
||||
'--size_t-is-usize',
|
||||
'--default-enum-style', 'rust',
|
||||
'--with-derive-partialeq',
|
||||
'--with-derive-eq',
|
||||
|
|
@ -104,6 +103,12 @@ rusticl_bindgen_args = [
|
|||
'--anon-fields-prefix', 'anon_',
|
||||
]
|
||||
|
||||
if find_program('bindgen').version().version_compare('< 0.65')
|
||||
rusticl_bindgen_args += [
|
||||
'--size_t-is-usize',
|
||||
]
|
||||
endif
|
||||
|
||||
rusticl_bindgen_c_args = [
|
||||
'-fno-builtin-malloc',
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue