forked from OSchip/llvm-project
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:
parent
b7be6b480b
commit
01b02a73de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue