1 2 3 4 5 6 7 8 9
// SPDX-License-Identifier: Apache-2.0 fn main() { use std::path::Path; if cfg!(feature = "hw_tests") || Path::new("/dev/sev").exists() { println!("cargo:rustc-cfg=has_sev"); } }