[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:14:59 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:
Oh, that's fascinating that they've emulated that too!
https://github.com/llvm/llvm-project/pull/145314
More information about the llvm-commits
mailing list