[libcxx-commits] [PATCH] D94924: [libc++] first steps of a private modulemap

Thorsten via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jan 18 12:10:54 PST 2021


tschuett updated this revision to Diff 317405.
tschuett added a comment.

add newline


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94924/new/

https://reviews.llvm.org/D94924

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/module.modulemap
  libcxx/include/module.private.modulemap


Index: libcxx/include/module.private.modulemap
===================================================================
--- /dev/null
+++ libcxx/include/module.private.modulemap
@@ -0,0 +1,7 @@
+module std_Private {
+
+  module __sso_allocator { header "__sso_allocator" export * }
+  module __std_stream { header "__std_stream" export * }
+
+  module __support { umbrella "support" export * }
+}
Index: libcxx/include/module.modulemap
===================================================================
--- libcxx/include/module.modulemap
+++ libcxx/include/module.modulemap
@@ -1,10 +1,3 @@
-// define the module for __config outside of the top level 'std' module
-// since __config may be included from C headers which may create an
-// include cycle.
-module std_config [system] [extern_c] {
-    header "__config"
-}
-
 module std [system] {
   export std_config
   // FIXME: The standard does not require that each of these submodules
@@ -531,8 +524,6 @@
   module __locale { header "__locale" export * }
   module __mutex_base { header "__mutex_base" export * }
   module __split_buffer { header "__split_buffer" export * }
-  module __sso_allocator { header "__sso_allocator" export * }
-  module __std_stream { header "__std_stream" export * }
   module __string { header "__string" export * }
   module __tree { header "__tree" export * }
   module __tuple { header "__tuple" export * }
Index: libcxx/include/CMakeLists.txt
===================================================================
--- libcxx/include/CMakeLists.txt
+++ libcxx/include/CMakeLists.txt
@@ -121,6 +121,7 @@
   math.h
   memory
   module.modulemap
+  module.private.modulemap
   mutex
   new
   numbers


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94924.317405.patch
Type: text/x-patch
Size: 1680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210118/456d9de6/attachment-0001.bin>


More information about the libcxx-commits mailing list