jobs,windows: Temporarily disable multiple jobs as a workaround for #118
This commit is contained in:
parent
3dfc32c486
commit
0690da5ec6
1 changed files with 6 additions and 0 deletions
|
@ -26,10 +26,16 @@
|
|||
|
||||
size_t get_processor_count(void) {
|
||||
#ifdef _WIN32
|
||||
/* This code shall return 1 until
|
||||
https://github.com/Snaipe/Criterion/issues/118 gets fixed. */
|
||||
# if 0
|
||||
SYSTEM_INFO sysinfo;
|
||||
GetSystemInfo(&sysinfo);
|
||||
|
||||
return (size_t) sysinfo.dwNumberOfProcessors;
|
||||
# else
|
||||
return 1;
|
||||
# endif
|
||||
#elif defined(BSD)
|
||||
int mib[2] = { CTL_HW, HW_NCPU };
|
||||
# ifdef __APPLE__
|
||||
|
|
Loading…
Add table
Reference in a new issue