mirror of
https://github.com/containers/youki
synced 2024-11-23 17:32:15 +01:00
02b8f772bb
* check libseccomp version before build, better build output
15 lines
324 B
Rust
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);
|
|
}
|
|
}
|
|
}
|