diff options
author | Jesse McKenna <jessemckenna@google.com> | 2019-07-12 20:32:10 (GMT) |
---|---|---|
committer | Jesse McKenna <jessemckenna@google.com> | 2019-07-12 20:32:10 (GMT) |
commit | a3a5d60622eb7330b8d82ff6620d28e3b90c6848 (patch) | |
tree | c4d1f9f6ab44fdd7636b92c47c779e25bfebd4cf | |
parent | e0bc2e5fd9036a31d507881e1383adde3672aaef (diff) | |
download | Ninja-a3a5d60622eb7330b8d82ff6620d28e3b90c6848.zip Ninja-a3a5d60622eb7330b8d82ff6620d28e3b90c6848.tar.gz Ninja-a3a5d60622eb7330b8d82ff6620d28e3b90c6848.tar.bz2 |
Make GetProcessorCount() count processors across all processor groups
-rw-r--r-- | src/util.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util.cc b/src/util.cc index ee810d6..f80616b 100644 --- a/src/util.cc +++ b/src/util.cc @@ -481,9 +481,7 @@ string StripAnsiEscapeCodes(const string& in) { int GetProcessorCount() { #ifdef _WIN32 - SYSTEM_INFO info; - GetNativeSystemInfo(&info); - return info.dwNumberOfProcessors; + return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); #else #ifdef CPU_COUNT // The number of exposed processors might not represent the actual number of |