Author: cwittich
Date: Sun Jul 30 00:46:54 2006
New Revision: 23372
URL:
http://svn.reactos.org/svn/reactos?rev=23372&view=rev
Log:
script which calls make -j with the number of processors retrieved by GetSystemInfo
Added:
trunk/tools/mingw-make/
trunk/tools/mingw-make/cpucount.c
trunk/tools/mingw-make/make.cmd
Added: trunk/tools/mingw-make/cpucount.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/mingw-make/cpucount.c?rev=23…
==============================================================================
--- trunk/tools/mingw-make/cpucount.c (added)
+++ trunk/tools/mingw-make/cpucount.c Sun Jul 30 00:46:54 2006
@@ -1,0 +1,8 @@
+#include <windows.h>
+
+int main() {
+ SYSTEM_INFO sysinfo;
+ GetSystemInfo(&sysinfo);
+ printf("%ld\n", sysinfo.dwNumberOfProcessors);
+}
+
Added: trunk/tools/mingw-make/make.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/mingw-make/make.cmd?rev=2337…
==============================================================================
--- trunk/tools/mingw-make/make.cmd (added)
+++ trunk/tools/mingw-make/make.cmd Sun Jul 30 00:46:54 2006
@@ -1,0 +1,4 @@
+@echo off
+for /f "usebackq" %%i IN (`cpucount`) DO @set CPUCOUNT=%%i
+echo %CPUCOUNT% Processors detected.
+mingw32-make -j %CPUCOUNT% %*