mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nak: Add minimum bindgen requirement
This is copied from rusticl. We need bindgen 0.65 so we have
size_t-is-usize by default.
Fixes: 94436580 ("nak: Only convert the written portion of the buffer in NirInstrPrinter")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11371
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30178>
This commit is contained in:
parent
d5ec3a8988
commit
95bff5ca5b
1 changed files with 15 additions and 0 deletions
|
|
@ -12,6 +12,21 @@ if rc.version().version_compare('< 1.73.0')
|
||||||
error('NAK requires Rust 1.73.0')
|
error('NAK requires Rust 1.73.0')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
bindgen_version = find_program('bindgen').version()
|
||||||
|
|
||||||
|
if bindgen_version == 'unknown'
|
||||||
|
error('Failed to detect bindgen version. If you are using bindgen 0.69.0, ' +
|
||||||
|
'please either update to 0.69.1 or downgrade to 0.68.1. You can ' +
|
||||||
|
'install the latest version for your user with ` +
|
||||||
|
``cargo install bindgen-cli`.')
|
||||||
|
endif
|
||||||
|
|
||||||
|
if bindgen_version.version_compare('< 0.65')
|
||||||
|
error('NAK requires bindgen 0.65 or newer. If your distribution does not ' +
|
||||||
|
'ship a recent enough version, you can install the latest version ' +
|
||||||
|
'for your user with `cargo install bindgen-cli`.')
|
||||||
|
endif
|
||||||
|
|
||||||
nak_rust_args = [
|
nak_rust_args = [
|
||||||
'-Aclippy::identity_op',
|
'-Aclippy::identity_op',
|
||||||
'-Aclippy::len_zero',
|
'-Aclippy::len_zero',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue