Skip to content

Commit

Permalink
Only prevent encrypted libraries from loading in parallel (#7633)
Browse files Browse the repository at this point in the history
  • Loading branch information
sjoelund committed Jun 30, 2021
1 parent 13ce532 commit 961e4c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/FrontEnd/Parser.mo
Expand Up @@ -236,7 +236,7 @@ function parallelParseFilesWork
protected
list<tuple<String,String,String,Option<Integer>>> 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
Expand Down

0 comments on commit 961e4c5

Please sign in to comment.