File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -116,14 +116,14 @@ fn main() {
116
116
}
117
117
118
118
// https://github.com/openssl/openssl/pull/15086
119
- // if version == Version::Openssl3xx
120
- // && kind == "static"
121
- // && (env::var("CARGO_CFG_TARGET_OS").unwrap() == "linux"
122
- // || env::var("CARGO_CFG_TARGET_OS").unwrap() == "android")
123
- // && env::var("CARGO_CFG_TARGET_POINTER_WIDTH").unwrap() == "32"
124
- // {
125
- // println!("cargo:rustc-link-lib=dylib=atomic");
126
- // }
119
+ if version == Version :: Openssl3xx
120
+ && kind == "static"
121
+ && ( env:: var ( "CARGO_CFG_TARGET_OS" ) . unwrap ( ) == "linux"
122
+ || env:: var ( "CARGO_CFG_TARGET_OS" ) . unwrap ( ) == "android" )
123
+ && env:: var ( "CARGO_CFG_TARGET_POINTER_WIDTH" ) . unwrap ( ) == "32"
124
+ {
125
+ println ! ( "cargo:rustc-link-lib=dylib=atomic" ) ;
126
+ }
127
127
128
128
if kind == "static" && target. contains ( "windows" ) {
129
129
println ! ( "cargo:rustc-link-lib=dylib=gdi32" ) ;
You can’t perform that action at this time.
0 commit comments