Debian Codegraph @

build.rs

raw symbols SCIP
1 use std::env;
2
3 fn main() {
4 let rustc_link_type = match env::var("LIBSECCOMP_LIB_TYPE") {
5 Ok(mode) => mode, // static, framework, dylib
6 Err(_) => String::from("dylib")
7 };
8
9 println!(
10 "cargo:rustc-link-lib={}={}",
11 rustc_link_type,
12 "seccomp"
13 );
14
15 match env::var("LIBSECCOMP_LIB_PATH") {
16 Ok(rustc_link_search) =>
17 println!("cargo:rustc-link-search=native={}", rustc_link_search),
18 Err(_) => {}
19 };
20 }