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 11use std:: env;
22
33fn 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" ) {
Original file line number Diff line number Diff line change @@ -5,6 +5,14 @@ use std::process::Command;
55
66fn 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
You can’t perform that action at this time.
0 commit comments