diff --git a/src/evaluation/WorkspaceManager.jl b/src/evaluation/WorkspaceManager.jl index 3c31e474b3..7a1ecb31ab 100644 --- a/src/evaluation/WorkspaceManager.jl +++ b/src/evaluation/WorkspaceManager.jl @@ -284,10 +284,16 @@ function create_workspaceprocess(WorkerType; compiler_options=CompilerOptions(), Status.report_business_started!(status, Symbol(1)) Status.report_business_planned!(status, Symbol(2)) + env = String[] # NOTE: Test to reduce the required memory on windows # .... see https://github.com/JuliaLang/julia/pull/47803 # .... the same fix can maybe be applied to other os? - env = Sys.iswindows() && WorkerType == Malt.Worker ? String["OPENBLAS_NUM_THREADS=1"] : String[] + if Sys.iswindows() && WorkerType == Malt.Worker + push!(env, "OPENBLAS_NUM_THREADS=1") + if VERSION < v"1.7.0" + push!(env, "JULIA_NUM_PRECOMPILE_TASKS=1") + end + end worker = WorkerType(; exeflags=_convert_to_flags(compiler_options), env) Status.report_business_finished!(status, Symbol(1))