Skip to content

Commit c39a3d3

Browse files
authored
Add $HOME to cargo's environment variables
Fixes #542
1 parent fadd800 commit c39a3d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

collector/src/bin/rustc-perf-collector/execute.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ impl<'a> CargoProcess<'a> {
167167
.env("SHELL", env::var_os("SHELL").unwrap_or_default())
168168
// PATH is needed to find things like linkers used by rustc/Cargo.
169169
.env("PATH", env::var_os("PATH").unwrap_or_default())
170+
// HOME is needed for cargo to find its home directory.
171+
.env("HOME", env::var_os("HOME").unwrap_or_default())
170172
.env(
171173
"RUSTC_THREAD_COUNT",
172174
env::var_os("RUSTC_THREAD_COUNT").unwrap_or_default(),

0 commit comments

Comments
 (0)