[PATCH] D74654: Don't call computeHostNumPhysicalCores when LLVM_ENABLE_THREADS is off

Amy Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 14 15:16:15 PST 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG01b02a73de78: Don't call computeHostNumPhysicalCores when LLVM_ENABLE_THREADS is off (authored by akhuang).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74654/new/

https://reviews.llvm.org/D74654

Files:
  llvm/lib/Support/Host.cpp


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74654.244778.patch
Type: text/x-patch
Size: 375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200214/0a3d3f6b/attachment.bin>


More information about the llvm-commits mailing list