Hi, I am facing a weird problem. When I try to compile something, I get tons of “cl.exe” and “Microsoft C-C++ Compiler Driver” spawned in task manager, one for each thread. You could think this is great, more cores working, shorter compile times, but no. Tons of threads trying to compile = tons of RAM being used, and at certain point I reach the evil Virtual Memory, so the compile goes super slow reading from disk.
I tried editing BuildConfiguration.xml to limit the number of threads, tried changing “Maximun Concurrent C++ Compilations” in Visual Studio. At first it works fine, but at some point compilation reaches:
Using Visual Studio 2019 14.28.29913 toolchain (C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29910) and Windows 10.0.18362.0 SDK (D:\Windows Kits\10).
Building X actions with Z processes…
Where Z are all the threads and… tons of “cl.exe” and “Microsoft C-C++ Compiler Driver” instances.
So, any idea?