Skip to content

Commit a20bdc7

Browse files
committed
[Runner] Fix bootstrapping
1 parent 1a40b26 commit a20bdc7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Runner.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,10 @@ function runner_setup!(workspaces, mappings, workspace_root, verbose, kwargs, pl
15731573
if !isdir(ccache_dir())
15741574
mkpath(ccache_dir())
15751575
end
1576-
push!(workspaces, ccache_dir() => envs["CCACHE_DIR"])
1576+
if haskey(ENV, "CCACHE_DIR")
1577+
# When bootstrapping, `CCACHE_DIR` is not defined.
1578+
push!(workspaces, ccache_dir() => envs["CCACHE_DIR"])
1579+
end
15771580
end
15781581

15791582
return platform, envs, shards

0 commit comments

Comments
 (0)