Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.
How to speed up Qt Windows Vc Build
Jump to navigation
Jump to search
En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh
Using /MP[processMax] option
More information about /MP[processMax] option here. Just add this flag to your spec file (%QIDIR%/mkspecs/win32-msvc*/qmake.conf).
processMax argument:
- (Optional) The maximum number of processes that the compiler can create.
- The processMax argument must range from 1 through 65536. Otherwise, the compiler issues warning message D9014, ignores the processMax argument, and assumes the maximum number of processes is 1.
- If you omit the processMax argument, the compiler retrieves the number of effective processors on your computer from the operating system, and creates a process for each processor.
Example: /MP2 (for dual core), /MP4 (for quad core)…
Using jom
In linux we do speed up with make -j4 or something like this. There is similar tool developed called jom, it can be downloaded from git here.
See also Jom.