How to speed up Qt Windows Vc Build: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
==Using /MP[processMax] option==
[[Category:HowTo]]


More information about /MP[processMax] option [http://msdn.microsoft.com/en-us/library/bb385193.aspx here] ''[msdn.microsoft.com]''. Just add this flag to your spec file (''%<span class="caps">QIDIR</span>%/mkspecs/win32-msvc*/qmake.conf'').
== Using /MP[processMax] option ==


''processMax'' argument:
More information about /MP[processMax] option &quot;here&amp;quot;:http://msdn.microsoft.com/en-us/library/bb385193.aspx. Just add this flag to your spec file &amp;#40;''&amp;#37;QIDIR&amp;amp;#37;/mkspecs/win32-msvc*/qmake.conf''&amp;#41;.


* (Optional) The maximum number of processes that the compiler can create.
''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.
* 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)…
Example: /MP2 (for dual core), /MP4 (for quad core)…


==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 [http://qt.gitorious.org/qt-labs/jom here] ''[qt.gitorious.org]''.
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 &quot;here&amp;quot;:http://qt.gitorious.org/qt-labs/jom.


See also [[jom|jom’s wiki page]]
See also &quot;jom's wiki page&amp;quot;:jom


Precompiled packages can be found [http://get.qt.nokia.com/jom/ here] ''[get.qt.nokia.com]''.
Precompiled packages can be found &quot;here&amp;quot;:http://get.qt.nokia.com/jom/.


The original announcement of jom can be found [http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/ here] ''[labs.qt.nokia.com]'':
The original announcement of jom can be found &quot;here&amp;quot;:http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/:
 
===Categories:===
 
* [[:Category:HowTo|HowTo]]

Revision as of 11:08, 24 February 2015


Using /MP[processMax] option

More information about /MP[processMax] option "here&quot;:http://msdn.microsoft.com/en-us/library/bb385193.aspx. Just add this flag to your spec file &#40;&#37;QIDIR&amp;#37;/mkspecs/win32-msvc*/qmake.conf&#41;.

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&quot;:http://qt.gitorious.org/qt-labs/jom.

See also "jom's wiki page&quot;:jom

Precompiled packages can be found "here&quot;:http://get.qt.nokia.com/jom/.

The original announcement of jom can be found "here&quot;:http://labs.qt.nokia.com/2009/03/27/speeding-up-visual-c-qt-builds/: