[fpc-devel] make -j for windows, number of cores?

Marco van de Voort marcov at stack.nl
Sun Mar 16 19:45:14 CET 2014

In our previous episode, Reinier Olislagers said:
> The build faq (that I have) states:
> 1. Does make -j work reliably on Windows, too?
> 2. I intend to detect the number of logical cores as per
> http://wiki.lazarus.freepascal.org/Example_of_multi-threaded_application:_array_of_threads#1._Detect_number_of_cores_available.
> and run that many jobs. Is that a good idea?

No. Even not on Windows. You need the number of physical cores, not logical
ones.  This will return the duplicate number of cores on systems with
hyperthreading. (I tested on my system and indeed, 8 instead of 4)

More information about the fpc-devel mailing list