File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -956,7 +956,7 @@ impl Build {
956
956
fn compile_objects ( & self , objs : & [ Object ] ) -> Result < ( ) , Error > {
957
957
use self :: rayon:: prelude:: * ;
958
958
959
- if let Ok ( amt) = env :: var ( "NUM_JOBS" ) {
959
+ if let Some ( amt) = self . getenv ( "NUM_JOBS" ) {
960
960
if let Ok ( amt) = amt. parse ( ) {
961
961
let _ = rayon:: ThreadPoolBuilder :: new ( )
962
962
. num_threads ( amt)
@@ -1179,7 +1179,7 @@ impl Build {
1179
1179
Some ( false ) => "/MD" ,
1180
1180
None => {
1181
1181
let features =
1182
- env :: var ( "CARGO_CFG_TARGET_FEATURE" ) . unwrap_or ( String :: new ( ) ) ;
1182
+ self . getenv ( "CARGO_CFG_TARGET_FEATURE" ) . unwrap_or ( String :: new ( ) ) ;
1183
1183
if features. contains ( "crt-static" ) {
1184
1184
"/MT"
1185
1185
} else {
@@ -1274,7 +1274,7 @@ impl Build {
1274
1274
}
1275
1275
1276
1276
if self . static_flag . is_none ( ) {
1277
- let features = env :: var ( "CARGO_CFG_TARGET_FEATURE" ) . unwrap_or ( String :: new ( ) ) ;
1277
+ let features = self . getenv ( "CARGO_CFG_TARGET_FEATURE" ) . unwrap_or ( String :: new ( ) ) ;
1278
1278
if features. contains ( "crt-static" ) {
1279
1279
cmd. args . push ( "-static" . into ( ) ) ;
1280
1280
}
You can’t perform that action at this time.
0 commit comments