Skip to content

Commit 76923d4

Browse files
precompile Pkg in this depot
1 parent cb288d3 commit 76923d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/pkg.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ temp_pkg_dir() do project_path
367367
tasks = Task[]
368368
iobs = IOBuffer[]
369369
Sys.CPU_THREADS == 1 && error("Cannot test for atomic usage log file interaction effectively with only Sys.CPU_THREADS=1")
370+
run(pipeline(`$(Base.julia_cmd()) --project="$(pkgdir(Pkg))" -e "import Pkg"`)) # to precompile Pkg given we're in a different depot
370371
for i in 1:Sys.CPU_THREADS
371372
iob = IOBuffer()
372373
t = @async run(pipeline(`$(Base.julia_cmd()) --project="$(pkgdir(Pkg))"

0 commit comments

Comments
 (0)