mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-01-22 13:43:48 +08:00
rusticl: check rustc version for flags requiring newer rustc/clippy
Fixes: 7e74ee07e3
("rusticl: silence clippy::arc-with-non-send-sync for now")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26780>
This commit is contained in:
parent
eb5bb5c784
commit
9643671dae
@ -818,6 +818,7 @@ if with_gallium_rusticl
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
add_languages('rust', required: true)
|
add_languages('rust', required: true)
|
||||||
|
rustc = meson.get_compiler('rust')
|
||||||
|
|
||||||
with_clc = true
|
with_clc = true
|
||||||
endif
|
endif
|
||||||
|
@ -90,10 +90,15 @@ rusticl_args = [
|
|||||||
'-Aclippy::redundant_field_names',
|
'-Aclippy::redundant_field_names',
|
||||||
'-Aclippy::too_many_arguments',
|
'-Aclippy::too_many_arguments',
|
||||||
'-Aclippy::type_complexity',
|
'-Aclippy::type_complexity',
|
||||||
# Needs to be fixed
|
|
||||||
'-Aclippy::arc-with-non-send-sync',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if rustc.version().version_compare('>=1.72')
|
||||||
|
rusticl_args += [
|
||||||
|
# Needs to be fixed
|
||||||
|
'-Aclippy::arc-with-non-send-sync'
|
||||||
|
]
|
||||||
|
endif
|
||||||
|
|
||||||
if with_platform_x11
|
if with_platform_x11
|
||||||
rusticl_args += [
|
rusticl_args += [
|
||||||
'--cfg', 'glx',
|
'--cfg', 'glx',
|
||||||
|
Loading…
Reference in New Issue
Block a user