[llvm] [LLVM][Support][Cygwin] Add threading support for Cygwin host (PR #145314)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 23 05:05:14 PDT 2025
================
@@ -338,7 +344,8 @@ llvm::BitVector llvm::get_thread_affinity_mask() {
unsigned llvm::get_cpus() { return 1; }
-#if defined(__linux__) && (defined(__i386__) || defined(__x86_64__))
+#if (defined(__linux__) || defined(__CYGWIN__)) && \
+ (defined(__i386__) || defined(__x86_64__))
// On Linux, the number of physical cores can be computed from /proc/cpuinfo,
----------------
mstorsjo wrote:
This tries to read `/proc/cpuinfo` - I don't expect cygwin to provide that, or does it?
https://github.com/llvm/llvm-project/pull/145314
More information about the llvm-commits
mailing list