Skip to content

Commit 8128d6d

Browse files
Merge pull request #543 from Nadrieril/patch-1
Add `$HOME` to cargo's environment variables
2 parents fadd800 + c39a3d3 commit 8128d6d

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)