meson, cargo: require Rust 1.83.0
Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Link: https://lore.kernel.org/r/20250908105005.2119297-4-pbonzini@redhat.com Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
091f115ea5
commit
e1c689c218
5 changed files with 18 additions and 21 deletions
|
|
@ -94,12 +94,12 @@ have_rust = have_rust and add_languages('rust', native: true,
|
|||
required: get_option('rust').disable_auto_if(not have_system))
|
||||
if have_rust
|
||||
rustc = meson.get_compiler('rust')
|
||||
if rustc.version().version_compare('<1.77.0')
|
||||
if rustc.version().version_compare('<1.83.0')
|
||||
if get_option('rust').enabled()
|
||||
error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.77.0')
|
||||
error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.83.0')
|
||||
else
|
||||
warning('rustc version ' + rustc.version() + ' is unsupported, disabling Rust compilation.')
|
||||
message('Please upgrade to at least 1.77.0 to use Rust.')
|
||||
message('Please upgrade to at least 1.83.0 to use Rust.')
|
||||
have_rust = false
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue