Both when building a project and building the UE4Editor I cannot find a way to limit the number of parallel jobs that clang uses.
So I get:
Performing 351 actions (4 in parallel)
I tried compiling the editor with make -j2 UE4Editor but the build tools completely ignore that.
My problem is that my cpu shows 4 available cpus (2 + 2 hyperthreading) but that gets me out of memory, too many processes, more than my 8GB occupied, system crash (happend two times).
I had to disable hyperthreading on the BIOS so that the build tools sees only 2 cpus and uses half the memory. But of course this is stupid, because I could for example compile with 3 jobs and it would be fine.
After disabling hyperthreading I get:
Performing 351 actions (2 in parallel)
So, my question is: is there any way to limit/set the number of parallel jobs when compiling?
if not, what is the reason for that?
I tried googling a bit and looking for the build tools compile options but couldn’t find the answer
As of 4.21 (and perhaps earlier, but I haven’t checked), MaxProcessCount belongs under one of the executor elements (e.g., ParallelExecutor). I’m using the following BuildConfiguration.xml:
I’ve tried all these things, nothing works?
It detects my changes to the BuildConfiguration.xml file, it says "Creating makefile for xyz (BuildConfiguration.xml is newer)
UE at version 4.25 at the moment, but I’ve tried it several times before with earlier versions.
Thing is, if I don’t limit the threads the compile runs out of memory. Compiling 24 in parallel eats quite a lot of memory