From 0402eb794ccf0c552ac776039b2b6f78e10285ad Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Fri, 10 Feb 2023 07:18:50 -0500 Subject: [PATCH] force singlethreading during precompilation (#48592) (cherry picked from commit c0d2c574d44231dba39f90d6a6b27448f71763ca) --- base/loading.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 0ab3f5474904f6..55cace21764f89 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2053,7 +2053,8 @@ function create_expr_cache(pkg::PkgId, input::String, output::String, output_o:: --color=$(have_color === nothing ? "auto" : have_color ? "yes" : "no") $trace -`, - "OPENBLAS_NUM_THREADS" => 1), + "OPENBLAS_NUM_THREADS" => 1, + "JULIA_NUM_THREADS" => 1), stderr = internal_stderr, stdout = internal_stdout), "w", stdout) # write data over stdin to avoid the (unlikely) case of exceeding max command line size