mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +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
33fbd9ea33
commit
035aa34ed5
2 changed files with 7 additions and 2 deletions
|
|
@ -1534,7 +1534,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",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -92,7 +92,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',
|
||||
|
|
@ -103,6 +102,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