Skip to content

Commit

Permalink
Fixes clippy errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ultimaweapon committed Apr 28, 2024
1 parent 70c76bf commit 1ba39f4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
fn main() {
match std::env::var("CARGO_CFG_TARGET_OS").unwrap().as_str() {
"macos" => {
println!("cargo::rustc-link-lib=framework=CoreFoundation");
println!("cargo::rustc-link-lib=framework=Security");
println!("cargo::rerun-if-changed=src/key/store/default.m");
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "macos" {
println!("cargo::rustc-link-lib=framework=CoreFoundation");
println!("cargo::rustc-link-lib=framework=Security");
println!("cargo::rerun-if-changed=src/key/store/default.m");

cc::Build::new()
.file("src/key/store/default.m")
.compile("warpffi")
}
_ => {}
cc::Build::new()
.file("src/key/store/default.m")
.compile("warpffi")
}
}

0 comments on commit 1ba39f4

Please sign in to comment.