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.
31 lines
988 B
31 lines
988 B
diff --git a/build.rs b/build.rs
|
|
index 7b66756..16eeb1f 100644
|
|
--- a/build.rs
|
|
+++ b/build.rs
|
|
@@ -22,22 +22,9 @@ fn main() {
|
|
return println!("cargo:rustc-flags=-l curl");
|
|
}
|
|
|
|
- // If the static-curl feature is disabled, probe for a system-wide libcurl.
|
|
- if !cfg!(feature = "static-curl") {
|
|
- // OSX ships libcurl by default, so we just use that version
|
|
- // so long as it has the right features enabled.
|
|
- if target.contains("apple") && (!cfg!(feature = "http2") || curl_config_reports_http2()) {
|
|
- return println!("cargo:rustc-flags=-l curl");
|
|
- }
|
|
-
|
|
- // Next, fall back and try to use pkg-config if its available.
|
|
- if windows {
|
|
- if try_vcpkg() {
|
|
- return;
|
|
- }
|
|
- } else if try_pkg_config() {
|
|
- return;
|
|
- }
|
|
+ // Try to use pkg-config if its available.
|
|
+ if try_pkg_config() {
|
|
+ return;
|
|
}
|
|
|
|
if !Path::new("curl/.git").exists() {
|