[libcxx-commits] [libcxx] [libcxx] Export directory_iterator in module build (PR #129195)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 1 05:09:17 PST 2025


================
@@ -1229,7 +1229,11 @@ module std [system] {
   module filesystem {
     module copy_options                   { header "__filesystem/copy_options.h" }
     module directory_entry                { header "__filesystem/directory_entry.h" }
-    module directory_iterator             { header "__filesystem/directory_iterator.h" }
+    module directory_iterator             {
+      header "__filesystem/directory_iterator.h"
+      // This is a workaround for https://github.com/llvm/llvm-project/issues/120108.
+      export *
----------------
mordante wrote:

Did you try to use more targeted exports?
Looking at the header maybe `export std.filesystem.directory_entry` may work as well since that header exports `__dir_element_proxy`.

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


More information about the libcxx-commits mailing list