You can enable parallel builds (equivalent of -j option) in the Project Properties under C/C++ Build -> Behavior:
- eclipse_build.png (103.18 KiB) Viewed 21040 times
Will add this to the Eclipse Setup guide.
You may find you get even better performance on Windows by choosing more than the "Optimal" number of jobs.
Has anyone done a performance test of a build on Linux compared to a build on Windows 10 for the same application/project?
Currently Linux is significantly faster, to the extent that running Linux in a VM on a Windows host is significantly faster than building on the host.
Running parallel builds helps in Windows. However the slowness of Windows builds was a major reason for supporting CMake in IDF V3.2 (and migrating to CMake by default in IDF v4.0.) Building under CMake is still faster in Linux, but the difference is significantly less...
(When we were first previewing CMake, a full CMake+ninja build under Windows was approximately as fast as a GNU Make build under Linux, but a full CMake+ninja build under Linux was faster than a GNU Make build under Linux... I haven't re-benchmarked since the CMake support became more mature.)
1. Regedit
2. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender
3. create key DisableAntiSpyware -> value 1
Disabling Windows Defender entirely is an option if you don't mind disabling all spyware protection... A number of people have reported success by adding their MSYS32 directory (and any directory containing IDF files) to an "ignore" list for Windows Defender and/or other anti-virus programs.
If doing this, remember not to download any untrusted content into these directories.