[libcxx-commits] [libcxx] [libc++] First attempt to regroup a few modules in the modulemap (PR #98214)

Ian Anderson via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jul 10 21:48:24 PDT 2024


================
@@ -245,8 +245,15 @@ module std_stdexcept [system] {
   header "stdexcept"
   export *
 }
-module std_stop_token {
+module std_stop_token [system] {
   header "stop_token"
+  private header "__stop_token/atomic_unique_lock.h"
----------------
ian-twilightcoder wrote:

Yes generally every header should be in its own submodule. Otherwise including `stop_token` when building with modules will implicitly include all of these headers as well, even if `stop_token` itself doesn't include them.

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


More information about the libcxx-commits mailing list