File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -375,9 +375,9 @@ impl Config {
375
375
if let Ok ( target) = env:: var ( "TARGET" ) {
376
376
let targetted_name = format ! ( "{}_{}" , envify( & target) , name) ;
377
377
match self . env_var ( & targetted_name) {
378
- Ok ( value) => Ok ( value) ,
379
- Err ( env:: VarError :: NotPresent ) => self . env_var ( name) ,
380
- Err ( e) => Err ( e)
378
+ Ok ( value) => { Ok ( value) } ,
379
+ Err ( env:: VarError :: NotPresent ) => { self . env_var ( name) } ,
380
+ Err ( e) => { Err ( e) }
381
381
}
382
382
} else {
383
383
self . env_var ( name)
@@ -417,6 +417,9 @@ impl Config {
417
417
if let Ok ( value) = self . targetted_env_var ( "PKG_CONFIG_LIBDIR" ) {
418
418
cmd. env ( "PKG_CONFIG_LIBDIR" , value) ;
419
419
}
420
+ if let Ok ( value) = self . targetted_env_var ( "PKG_CONFIG_SYSROOT_DIR" ) {
421
+ cmd. env ( "PKG_CONFIG_SYSROOT_DIR" , value) ;
422
+ }
420
423
if self . print_system_libs {
421
424
cmd. env ( "PKG_CONFIG_ALLOW_SYSTEM_LIBS" , "1" ) ;
422
425
}
You can’t perform that action at this time.
0 commit comments