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> (cherry picked from commit9643671dae
)
This commit is contained in:

committed by
Eric Engestrom

parent
0c6d7bcd0c
commit
676fd7a287
@@ -264,7 +264,7 @@
|
|||||||
"description": "rusticl: check rustc version for flags requiring newer rustc/clippy",
|
"description": "rusticl: check rustc version for flags requiring newer rustc/clippy",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 1,
|
"nomination_type": 1,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": "7e74ee07e3a7aebc46cbd6d724b49790cb9f9c29",
|
"because_sha": "7e74ee07e3a7aebc46cbd6d724b49790cb9f9c29",
|
||||||
"notes": null
|
"notes": null
|
||||||
|
@@ -796,6 +796,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
|
||||||
|
@@ -89,10 +89,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
|
||||||
|
|
||||||
rusticl_gen_args = [
|
rusticl_gen_args = [
|
||||||
# can't do anything about it anyway
|
# can't do anything about it anyway
|
||||||
'-Aclippy::all',
|
'-Aclippy::all',
|
||||||
|
Reference in New Issue
Block a user