Skip to content

Commit 10342e2

Browse files
IanButterworthKristofferC
authored andcommitted
force singlethreading during precompilation (#48592)
(cherry picked from commit c0d2c57)
1 parent a9e4b35 commit 10342e2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base/loading.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,8 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, output_o::
20532053
--color=$(have_color === nothing ? "auto" : have_color ? "yes" : "no")
20542054
$trace
20552055
-`,
2056-
"OPENBLAS_NUM_THREADS" => 1),
2056+
"OPENBLAS_NUM_THREADS" => 1,
2057+
"JULIA_NUM_THREADS" => 1),
20572058
stderr = internal_stderr, stdout = internal_stdout),
20582059
"w", stdout)
20592060
# write data over stdin to avoid the (unlikely) case of exceeding max command line size

0 commit comments

Comments
 (0)