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.
36 lines
1.1 KiB
36 lines
1.1 KiB
From 8d735f41d301b278356ab252c2ca8b03405f9eb4 Mon Sep 17 00:00:00 2001
|
|
From: Fabio Valentini <decathorpe@gmail.com>
|
|
Date: Wed, 14 Dec 2022 13:20:58 +0100
|
|
Subject: [PATCH] build with vendored libgit2 unconditionally
|
|
|
|
---
|
|
build.rs | 12 ------------
|
|
1 file changed, 12 deletions(-)
|
|
|
|
diff --git a/build.rs b/build.rs
|
|
index 0046afa..9cb6ddd 100644
|
|
--- a/build.rs
|
|
+++ b/build.rs
|
|
@@ -10,18 +10,6 @@ fn main() {
|
|
let vendored = env::var("CARGO_FEATURE_VENDORED").is_ok();
|
|
let zlib_ng_compat = env::var("CARGO_FEATURE_ZLIB_NG_COMPAT").is_ok();
|
|
|
|
- // To use zlib-ng in zlib-compat mode, we have to build libgit2 ourselves.
|
|
- let try_to_use_system_libgit2 = !vendored && !zlib_ng_compat;
|
|
- if try_to_use_system_libgit2 {
|
|
- let mut cfg = pkg_config::Config::new();
|
|
- if let Ok(lib) = cfg.atleast_version("1.3.0").probe("libgit2") {
|
|
- for include in &lib.include_paths {
|
|
- println!("cargo:root={}", include.display());
|
|
- }
|
|
- return;
|
|
- }
|
|
- }
|
|
-
|
|
println!("cargo:rustc-cfg=libgit2_vendored");
|
|
|
|
if !Path::new("libgit2/.git").exists() {
|
|
--
|
|
2.38.1
|
|
|