[libcxx-commits] [libcxx] [libc++] remove yield from atomic::wait (PR #120012)

Ian Anderson via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jan 17 11:30:49 PST 2025


ian-twilightcoder wrote:

> That means that, on a platform where /usr/include is not modularized, we're textually including <pthread.h> into std.thread.support
> ...
> @ian-twilightcoder do you know how we can solve this problem?

You can't. If usr/include is not modularized, you can't use libc++'s clang module either. We used to be able to cheat when libc++ was a single module, and there were _no_ other modules in the build at all, but now that it's multiple modules there's no cheat. If you're going to use clang modules, the entire dependency tree has to be modular. We actually did a talk about that, https://youtu.be/tcB1vXc4L8M?si=Vqr5_sB7wczZDteF

https://github.com/llvm/llvm-project/pull/120012


More information about the libcxx-commits mailing list