File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -238,11 +238,11 @@ fn zlib_installed(cfg: &mut cc::Build) -> bool {
238238 false
239239}
240240
241- // The environment variable `LIBZ_SYS_STATIC` is first checked for a value of `0` (false) or `1` (true),
242- // before considering the `static` feature when no explicit ENV value was detected.
243- // When `libz-sys` is a transitive dependency from a crate that forces static linking via the `static` feature,
244- // this enables the build environment to revert that preference via `LIBZ_SYS_STATIC=0`.
245- // The default is otherwise `false`.
241+ /// The environment variable `LIBZ_SYS_STATIC` is first checked for a value of `0` (false) or `1` (true),
242+ /// before considering the `static` feature when no explicit ENV value was detected.
243+ /// When `libz-sys` is a transitive dependency from a crate that forces static linking via the `static` feature,
244+ /// this enables the build environment to revert that preference via `LIBZ_SYS_STATIC=0`.
245+ /// The default is otherwise `false`.
246246fn should_link_static ( ) -> bool {
247247 let has_static_env: Option < & ' static str > = option_env ! ( "LIBZ_SYS_STATIC" ) ;
248248 let has_static_cfg = cfg ! ( feature = "static" ) ;
You can’t perform that action at this time.
0 commit comments