aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-10-15 09:50:02 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2024-11-05 14:18:17 +0100
commit4fe146926fd50a9a2f5591fedc46c7aef7b4bd32 (patch)
tree65d77c3d4f8a6ab88c55139daa0864f4bf81d251
parente2b3905b6612d23365ef1c9e01112f5e17900f20 (diff)
downloadqemu-4fe146926fd50a9a2f5591fedc46c7aef7b4bd32.zip
qemu-4fe146926fd50a9a2f5591fedc46c7aef7b4bd32.tar.gz
qemu-4fe146926fd50a9a2f5591fedc46c7aef7b4bd32.tar.bz2
rust: allow version 1.63.0 of rustc
All constructs introduced by newer versions of Rust have been removed. Apart from Debian 12, all other supported Linux distributions have rustc 1.75.0 or newer. This means that they only lack c"" literals and stable offset_of!. Tested-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--meson.build7
1 files changed, 4 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 6880acc..11d7c34 100644
--- a/meson.build
+++ b/meson.build
@@ -89,11 +89,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.80.0')
+ if rustc.version().version_compare('<1.63.0')
if get_option('rust').enabled()
- error('rustc version ' + rustc.version() + ' is unsupported: Please upgrade to at least 1.80.0')
+ error('rustc version ' + rustc.version() + ' is unsupported. Please upgrade to at least 1.63.0')
else
- warning('rustc version ' + rustc.version() + ' is unsupported: Disabling Rust compilation. Please upgrade to at least 1.80.0 to use Rust.')
+ warning('rustc version ' + rustc.version() + ' is unsupported, disabling Rust compilation.')
+ message('Please upgrade to at least 1.63.0 to use Rust.')
have_rust = false
endif
endif