Don't call computeHostNumPhysicalCores when LLVM_ENABLE_THREADS is off

Summary:
Fix change from 8404aeb56a to avoid calling
computeHostNumPhysicalCores if LLVM_ENABLE_THREADS is off.

Reviewers: rnk, aganea

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74654
This commit is contained in:
Amy Huang 2020-02-14 14:52:25 -08:00
parent b7be6b480b
commit 01b02a73de
1 changed files with 1 additions and 1 deletions

View File

@ -1326,7 +1326,7 @@ int computeHostNumPhysicalCores() {
}
return count;
}
#elif defined(_WIN32)
#elif defined(_WIN32) && LLVM_THREADS_ENABLED
// Defined in llvm/lib/Support/Windows/Threading.inc
int computeHostNumPhysicalCores();
#else