Skip to content

Commit 88f083a

Browse files
committed
revert thingy
1 parent 4a6a0a9 commit 88f083a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
using PackageCompiler
22

33
sysimage = tempname()
4-
create_sysimage(["LinearAlgebra", "Test", "Distributed", "Dates", "REPL", "Printf", "Random"]; sysimage_path=sysimage, incremental=false, filter_stdlibs=true)
54

6-
current_dir = @__DIR__
75
ncores = Sys.isapple() ? Sys.CPU_THREADS : ceil(Int, Sys.CPU_THREADS / 2)
6+
7+
withenv("JULIA_IMAGE_THREADS" => ncores) do
8+
create_sysimage(["LinearAlgebra", "Test", "Distributed", "Dates", "REPL", "Printf", "Random"]; sysimage_path=sysimage, incremental=false, filter_stdlibs=true)
9+
end
10+
11+
current_dir = @__DIR__
812
cmd = """Base.runtests(["LinearAlgebra"]; propagate_project=true, ncores=$ncores)"""
9-
run(`$(Base.julia_cmd()) --sysimage=$sysimage --project=$current_dir -e $cmd`)
13+
withenv("JULIA_NUM_THREADS" => 1) do
14+
run(`$(Base.julia_cmd()) --sysimage=$sysimage --project=$current_dir -e $cmd`)
15+
end

0 commit comments

Comments
 (0)