summaryrefslogtreecommitdiffstats
path: root/third_party/rust/cose/build.rs
blob: 8db7af5ad197ca205f4094fb4a137b1d8c104d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
use std::env;

fn main() {
    // Use NSS_LIB_DIR lazily. If it's not set and we can't find NSS in the path,
    // the build will fail.
    #[cfg(test)]
    let lib_dir = env::var("NSS_LIB_DIR");
    if let Ok(lib_dir) = env::var("NSS_LIB_DIR") {
        println!("cargo:rustc-link-search={}", lib_dir);
    }
}