Issue 124642
Summary [libc][sched] missing macros `CPU_ZERO`, `CPU_ISSET`, and `CPU_SET`
Labels libc
Assignees
Reporter nickdesaulniers
    building clang against llvm-libc fails with:
```
In file included from /llvm-project-main/llvm/lib/Support/Threading.cpp:67:
/llvm-project-main/llvm/lib/Support/Unix/Threading.inc:348:3: error: use of undeclared identifier 'CPU_ZERO'
  348 | CPU_ZERO(&Enabled);
      | ^
/llvm-project-main/llvm/lib/Support/Unix/Threading.inc:380:11: error: use of undeclared identifier 'CPU_ISSET'
  380 |       if (CPU_ISSET(CurProcessor, &Affinity))
      | ^
/llvm-project-main/llvm/lib/Support/Unix/Threading.inc:381:9: error: use of undeclared identifier 'CPU_SET'
  381 |         CPU_SET(CurPhysicalId * CurSiblings + CurCoreId, &Enabled);
      |         ^

```
looks like these are macros we'd probably need to define in libc/include/llvm-libc-macros/linux/sched-macros.h.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to