From 961e4c512c27b54bdda8306253fdf0c2228ce9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Sj=C3=B6lund?= Date: Wed, 30 Jun 2021 11:50:25 +0200 Subject: [PATCH] Only prevent encrypted libraries from loading in parallel (#7633) --- OMCompiler/Compiler/FrontEnd/Parser.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMCompiler/Compiler/FrontEnd/Parser.mo b/OMCompiler/Compiler/FrontEnd/Parser.mo index 8a0ade8da2a..29edbc248eb 100644 --- a/OMCompiler/Compiler/FrontEnd/Parser.mo +++ b/OMCompiler/Compiler/FrontEnd/Parser.mo @@ -236,7 +236,7 @@ function parallelParseFilesWork protected list>> workList = list((file,encoding,libraryPath,lveInstance) for file in filenames); algorithm - if Testsuite.isRunning() or Config.noProc()==1 or numThreads == 1 or listLength(filenames)<2 or not(libraryPath == "") then + if Testsuite.isRunning() or Config.noProc()==1 or numThreads == 1 or listLength(filenames)<2 or isSome(lveInstance) then partialResults := list(loadFileThread(t) for t in workList); else // GC.disable(); // Seems to sometimes break building nightly omc