How to speed up Qt Windows Vc Build: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
== Using /MP[processMax] option == | == Using /MP[processMax] option == | ||
More information about /MP[processMax] option | More information about /MP[processMax] option "here":http://msdn.microsoft.com/en-us/library/bb385193.aspx. Just add this flag to your spec file (''%QIDIR%/mkspecs/win32-msvc*/qmake.conf''). | ||
''processMax'' argument:<br />* (Optional) The maximum number of processes that the compiler can create.<br />* 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.<br />* 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. | ''processMax'' argument:<br />* (Optional) The maximum number of processes that the compiler can create.<br />* 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.<br />* 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. | ||
Line 11: | Line 11: | ||
== Using jom == | == 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 | 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":http://qt.gitorious.org/qt-labs/jom. | ||
See also | See also "jom's wiki page":jom | ||
Precompiled packages can be found | Precompiled packages can be found "here":http://get.qt.nokia.com/jom/. | ||
The original announcement of jom can be found | The original announcement of jom can be found "here":http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/: |
Revision as of 14:22, 24 February 2015
Using /MP[processMax] option
More information about /MP[processMax] option "here":http://msdn.microsoft.com/en-us/library/bb385193.aspx. Just add this flag to your spec file (%QIDIR&#37;/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":http://qt.gitorious.org/qt-labs/jom.
See also "jom's wiki page":jom
Precompiled packages can be found "here":http://get.qt.nokia.com/jom/.
The original announcement of jom can be found "here":http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/: