Skip to content

Commit 6fa1bf0

Browse files
authored
Merge pull request #575 from ehuss/check-cfg
Squelch check-cfg warnings
2 parents 597a439 + e67e733 commit 6fa1bf0

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
use std::env;
22

33
fn main() {
4+
println!(
5+
"cargo::rustc-check-cfg=cfg(\
6+
need_openssl_init,\
7+
need_openssl_probe,\
8+
)"
9+
);
410
// OpenSSL >= 1.1.0 can be initialized concurrently and is initialized correctly by libcurl.
511
// <= 1.0.2 need locking callbacks, which are provided by openssl_sys::init().
612
let use_openssl = match env::var("DEP_OPENSSL_VERSION_NUMBER") {

curl-sys/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ use std::process::Command;
55

66
fn main() {
77
println!("cargo:rerun-if-changed=curl");
8+
println!(
9+
"cargo::rustc-check-cfg=cfg(\
10+
libcurl_vendored,\
11+
link_libnghttp2,\
12+
link_libz,\
13+
link_openssl,\
14+
)"
15+
);
816
let target = env::var("TARGET").unwrap();
917
let windows = target.contains("windows");
1018

0 commit comments

Comments
 (0)