File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,13 +43,13 @@ impl Make {
43
43
name : & str ,
44
44
pkg_config_names : & [ & str ] ,
45
45
) -> Result < ( ) > {
46
- let libs_enabled = feature_reason == SystemLib :: Libs && cfg ! ( feature = "sys-lib" ) ;
46
+ let all_enabled = feature_reason == SystemLib :: Libs && cfg ! ( feature = "sys-lib" ) ;
47
47
let feature_enabled = env:: var_os ( format ! (
48
48
"CARGO_FEATURE_SYS_LIB_{}" ,
49
49
feature. to_ascii_uppercase( )
50
50
) )
51
51
. is_some ( ) ;
52
- let enabled = feature_reason == SystemLib :: Always || libs_enabled || feature_enabled;
52
+ let enabled = feature_reason == SystemLib :: Always || all_enabled || feature_enabled;
53
53
54
54
self . make_bool ( & format ! ( "USE_SYSTEM_{name}" ) , enabled) ;
55
55
if !enabled {
@@ -66,8 +66,8 @@ impl Make {
66
66
format ! (
67
67
"You have two ways of solving this problem:
68
68
1. {first_solution}
69
- 2. Disable the `sys-lib-{feature}` {}. This might be not what you what though, as it will statically link {pkg_config_name}." ,
70
- if libs_enabled { "and `sys-lib` features" } else { "feature" } ,
69
+ 2. Disable the `sys-lib-{feature}` {}. This might not be what you what though, as it will statically link {pkg_config_name}." ,
70
+ if all_enabled { "and `sys-lib` features" } else { "feature" } ,
71
71
)
72
72
} ;
73
73
You can’t perform that action at this time.
0 commit comments