From 4b07ca35eb56b572720521fef7c202ec4cc1e325 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 31 Dec 2020 14:45:59 -0500 Subject: Added preprocessor if to clarify processor count workaround code is only needed on 32-bit builds (following code review) --- src/util.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util.cc b/src/util.cc index e8455ec..6ea854b 100644 --- a/src/util.cc +++ b/src/util.cc @@ -481,6 +481,7 @@ string StripAnsiEscapeCodes(const string& in) { int GetProcessorCount() { #ifdef _WIN32 +#ifndef _WIN64 // Need to use GetLogicalProcessorInformationEx to get real core count on // machines with >64 cores. See https://stackoverflow.com/a/31209344/21475 DWORD len = 0; @@ -508,7 +509,7 @@ int GetProcessorCount() { } } } - // fallback just in case +#endif return GetActiveProcessorCount(ALL_PROCESSOR_GROUPS); #else #ifdef CPU_COUNT -- cgit v0.12