123456789101112131415161718192021222324252627282930313233 |
- #![forbid(unsafe_code)]
- use build_target::{target_arch, target_os, Arch, Os};
- fn main() {
- let arch = target_arch().expect("Failed to get build target architecture");
- let os = target_os().expect("Failed to get build target OS");
- println!("cargo:rustc-check-cfg=cfg(has_seccomp_support)");
- match os {
- Os::Linux | Os::Android => {
- match arch {
-
- Arch::X86_64 | Arch::AARCH64 => {
- println!("cargo:rustc-cfg=has_seccomp_support");
- }
- _ => (),
- }
- }
- _ => (),
- }
- }
|