@@ -431,7 +431,7 @@ mod impl_ {
431
431
target : & str ,
432
432
instance_path : & PathBuf ,
433
433
) -> Option < Tool > {
434
- let ( bin_path, host_dylib_path, lib_path, include_path) =
434
+ let ( root_path , bin_path, host_dylib_path, lib_path, include_path) =
435
435
vs15plus_vc_paths ( target, instance_path) ?;
436
436
let tool_path = bin_path. join ( tool) ;
437
437
if !tool_path. exists ( ) {
@@ -444,7 +444,7 @@ mod impl_ {
444
444
tool. libs . push ( lib_path) ;
445
445
tool. include . push ( include_path) ;
446
446
447
- if let Some ( ( atl_lib_path, atl_include_path) ) = atl_paths ( target, & bin_path ) {
447
+ if let Some ( ( atl_lib_path, atl_include_path) ) = atl_paths ( target, & root_path ) {
448
448
tool. libs . push ( atl_lib_path) ;
449
449
tool. include . push ( atl_include_path) ;
450
450
}
@@ -457,7 +457,7 @@ mod impl_ {
457
457
fn vs15plus_vc_paths (
458
458
target : & str ,
459
459
instance_path : & PathBuf ,
460
- ) -> Option < ( PathBuf , PathBuf , PathBuf , PathBuf ) > {
460
+ ) -> Option < ( PathBuf , PathBuf , PathBuf , PathBuf , PathBuf ) > {
461
461
let version_path =
462
462
instance_path. join ( r"VC\Auxiliary\Build\Microsoft.VCToolsVersion.default.txt" ) ;
463
463
let mut version_file = File :: open ( version_path) . ok ( ) ?;
@@ -490,7 +490,7 @@ mod impl_ {
490
490
. join ( & host. to_lowercase ( ) ) ;
491
491
let lib_path = path. join ( "lib" ) . join ( & target) ;
492
492
let include_path = path. join ( "include" ) ;
493
- Some ( ( bin_path, host_dylib_path, lib_path, include_path) )
493
+ Some ( ( path , bin_path, host_dylib_path, lib_path, include_path) )
494
494
}
495
495
496
496
fn atl_paths ( target : & str , path : & Path ) -> Option < ( PathBuf , PathBuf ) > {
0 commit comments