Skip to content

Commit

Permalink
Squelch the warning about libgit2_vendored check-cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
ehuss committed Jan 4, 2025
1 parent 8977c0c commit 8ce89e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libgit2-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ fn try_system_libgit2() -> Result<pkg_config::Library, pkg_config::Error> {
}

fn main() {
println!(
"cargo:rustc-check-cfg=cfg(\
libgit2_vendored,\
)"
);

let https = env::var("CARGO_FEATURE_HTTPS").is_ok();
let ssh = env::var("CARGO_FEATURE_SSH").is_ok();
let vendored = env::var("CARGO_FEATURE_VENDORED").is_ok();
Expand Down

0 comments on commit 8ce89e2

Please sign in to comment.