File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change 1
1
use std:: env;
2
2
3
3
fn main ( ) {
4
+ println ! (
5
+ "cargo::rustc-check-cfg=cfg(\
6
+ need_openssl_init,\
7
+ need_openssl_probe,\
8
+ )"
9
+ ) ;
4
10
// OpenSSL >= 1.1.0 can be initialized concurrently and is initialized correctly by libcurl.
5
11
// <= 1.0.2 need locking callbacks, which are provided by openssl_sys::init().
6
12
let use_openssl = match env:: var ( "DEP_OPENSSL_VERSION_NUMBER" ) {
Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ use std::process::Command;
5
5
6
6
fn main ( ) {
7
7
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
+ ) ;
8
16
let target = env:: var ( "TARGET" ) . unwrap ( ) ;
9
17
let windows = target. contains ( "windows" ) ;
10
18
You can’t perform that action at this time.
0 commit comments