mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 18:20:30 +01: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>
This commit is contained in:
parent
62dd0370be
commit
a9cce40dab
1 changed files with 6 additions and 1 deletions
|
|
@ -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