Author: peterw
Date: Sun Dec 2 02:47:02 2007
New Revision: 30949
URL:
http://svn.reactos.org/svn/reactos?rev=30949&view=rev
Log:
- Change the MinGW prompt's 'makex' use cpucount.exe as well.
Modified:
trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd
Modified: trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Root/Min…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd (original)
+++ trunk/tools/RosBE/RosBE-Windows/Root/MinGW.cmd Sun Dec 2 02:47:02 2007
@@ -29,7 +29,16 @@
echo.
echo.
+::
+:: Get the number of CPUs in the system so we know how many jobs to execute.
+:: To modify the number used alter the options used with cpucount:
+:: No Option - Number of CPUs.
+:: -x1 - Number of CPUs, plus 1.
+:: -x2 - Number of CPUs, doubled.
+::
+for /f "usebackq" %%i in (`"%_ROSBE_BASEDIR%\Tools\cpucount.exe"
-x1`) do set CPUCOUNT=%%i
+
doskey MAKE = "%_ROSBE_MINGWMAKE%" $*
-doskey MAKEX = "%_ROSBE_MINGWMAKE%" -j %NUMBER_OF_PROCESSORS% $*
+doskey MAKEX = "%_ROSBE_MINGWMAKE%" -j %CPUCOUNT% $*
:EOC