You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-libgit2-sys/0001-build.rs-always-use-pk...

39 lines
1.3 KiB

6 years ago
From d887c34ce5ec0d3b4228cf0f88e970f586abc845 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Sun, 26 Nov 2017 12:22:51 +0100
Subject: [PATCH] build.rs: always use pkg-config
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
6 years ago
Signed-off-by: Josh Stone <jistone@redhat.com>
---
6 years ago
libgit2-sys/build.rs | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/libgit2-sys/build.rs b/libgit2-sys/build.rs
6 years ago
index cc76cd46b3b3..45c6ed61280d 100644
--- a/libgit2-sys/build.rs
+++ b/libgit2-sys/build.rs
6 years ago
@@ -10,14 +10,12 @@ fn main() {
let https = env::var("CARGO_FEATURE_HTTPS").is_ok();
7 years ago
let ssh = env::var("CARGO_FEATURE_SSH").is_ok();
6 years ago
- if env::var("LIBGIT2_SYS_USE_PKG_CONFIG").is_ok() {
6 years ago
- let mut cfg = pkg_config::Config::new();
- if let Ok(lib) = cfg.atleast_version("0.28.0").probe("libgit2") {
- for include in &lib.include_paths {
- println!("cargo:root={}", include.display());
- }
- return
6 years ago
+ let mut cfg = pkg_config::Config::new();
+ if let Ok(lib) = cfg.atleast_version("0.28.0").probe("libgit2") {
+ for include in &lib.include_paths {
+ println!("cargo:root={}", include.display());
}
+ return
}
if !Path::new("libgit2/.git").exists() {
--
6 years ago
2.21.0