1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00
youki/seccomp/build.rs
Travis Sturzl 02b8f772bb
Check libseccomp is available at correct version on build (#367)
* check libseccomp version before build, better build output
2021-10-05 22:45:29 -07:00

15 lines
324 B
Rust

const MINIMUM_VERSION: &str = "2.5";
const PKG_NAME: &str = "libseccomp";
fn main() {
match pkg_config::Config::new()
.atleast_version(MINIMUM_VERSION)
.probe(PKG_NAME)
{
Ok(_) => {}
Err(err) => {
eprintln!("{}", err);
std::process::exit(1);
}
}
}