mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
rust: remove offset_of replacement
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5df3fe062f
commit
b134a09ffa
15 changed files with 16 additions and 239 deletions
|
|
@ -8,8 +8,6 @@ use std::os::unix::fs::symlink as symlink_file;
|
|||
use std::os::windows::fs::symlink_file;
|
||||
use std::{env, fs::remove_file, io::Result, path::Path};
|
||||
|
||||
use version_check as rustc;
|
||||
|
||||
fn main() -> Result<()> {
|
||||
// Placing bindings.inc.rs in the source directory is supported
|
||||
// but not documented or encouraged.
|
||||
|
|
@ -38,11 +36,6 @@ fn main() -> Result<()> {
|
|||
}
|
||||
symlink_file(file, dest_path)?;
|
||||
|
||||
// Check for available rustc features
|
||||
if rustc::is_min_version("1.77.0").unwrap_or(false) {
|
||||
println!("cargo:rustc-cfg=has_offset_of");
|
||||
}
|
||||
|
||||
println!("cargo:rerun-if-changed=build.rs");
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue