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

via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 5 10:07:56 PST 2025


Author: Takuto Ikuta
Date: 2025-03-05T19:07:50+01:00
New Revision: e51331cb9a2d5dcb427d7ba3dea04f611114535b

URL: https://github.com/llvm/llvm-project/commit/e51331cb9a2d5dcb427d7ba3dea04f611114535b
DIFF: https://github.com/llvm/llvm-project/commit/e51331cb9a2d5dcb427d7ba3dea04f611114535b.diff

LOG: [libcxx] Export directory_iterator in module build (#129195)

This is workaround for the link error like https://crbug.com/390537876.

Might be related to https://github.com/llvm/llvm-project/issues/120108
too.

Added: 
    

Modified: 
    libcxx/include/module.modulemap

Removed: 
    


################################################################################
diff  --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index 2071b6b52eaef..81c7378d9e3b8 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -1232,7 +1232,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 *
+    }
     module directory_options              { header "__filesystem/directory_options.h" }
     module file_status                    { header "__filesystem/file_status.h" }
     module file_time_type                 { header "__filesystem/file_time_type.h" }


        


More information about the libcxx-commits mailing list