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 = []
3131crate-type = [' staticlib' , ' rlib' ]
3232
3333[build-dependencies ]
34+ home = " 0.5"
3435llvm-tools = " 0.1"
3536
3637# [profile.dev]
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ fn sanitize(cmd: &str) -> Command {
9999 let exe = format ! ( "{cmd}{}" , env:: consts:: EXE_SUFFIX ) ;
100100 // On windows, the userspace toolchain ends up in front of the rustup proxy in $PATH.
101101 // 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 ( ) ;
103103 cargo_home. push ( "bin" ) ;
104104 cargo_home. push ( & exe) ;
105105 if cargo_home. exists ( ) {
You can’t perform that action at this time.
0 commit comments