File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ default = []
31
31
crate-type = [' staticlib' , ' rlib' ]
32
32
33
33
[build-dependencies ]
34
+ home = " 0.5"
34
35
llvm-tools = " 0.1"
35
36
36
37
# [profile.dev]
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ fn sanitize(cmd: &str) -> Command {
99
99
let exe = format ! ( "{cmd}{}" , env:: consts:: EXE_SUFFIX ) ;
100
100
// On windows, the userspace toolchain ends up in front of the rustup proxy in $PATH.
101
101
// To reach the rustup proxy nonetheless, we explicitly query $CARGO_HOME.
102
- let mut cargo_home = PathBuf :: from ( env :: var_os ( "CARGO_HOME" ) . unwrap ( ) ) ;
102
+ let mut cargo_home = home :: cargo_home ( ) . unwrap ( ) ;
103
103
cargo_home. push ( "bin" ) ;
104
104
cargo_home. push ( & exe) ;
105
105
if cargo_home. exists ( ) {
You can’t perform that action at this time.
0 commit comments