mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
build: Add "fuzzing" as a valid cfg(..) attribute
The compiler is now able to warn if an invalid attribute (e.g like a feature) is not available. See https://blog.rust-lang.org/2024/05/06/check-cfg.html for more details. Add build.rs files in the crates that use #cfg(fuzzing) to add fuzzing to the list of valid cfg attributes. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
8b86c7724b
commit
7e25cc2aa0
8
net_util/build.rs
Normal file
8
net_util/build.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Copyright © 2024 Intel Corporation
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
println!("cargo::rustc-check-cfg=cfg(fuzzing)");
|
||||||
|
}
|
8
virtio-devices/build.rs
Normal file
8
virtio-devices/build.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Copyright © 2024 Intel Corporation
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
println!("cargo::rustc-check-cfg=cfg(fuzzing)");
|
||||||
|
}
|
8
vmm/build.rs
Normal file
8
vmm/build.rs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
// Copyright © 2024 Intel Corporation
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
|
||||||
|
fn main() {
|
||||||
|
println!("cargo::rustc-check-cfg=cfg(fuzzing)");
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user