Skip to content

Commit 4b85f6f

Browse files
committed
Work around a compiler bug with Modules
1 parent a0bc014 commit 4b85f6f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

libcxx/include/module.modulemap

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,10 @@ module std [system] {
15271527
module aligned_alloc { header "__memory/aligned_alloc.h" }
15281528
module allocate_at_least { header "__memory/allocate_at_least.h" }
15291529
module allocation_guard { header "__memory/allocation_guard.h" }
1530-
module allocator { header "__memory/allocator.h" }
1530+
module allocator {
1531+
header "__memory/allocator.h"
1532+
export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1533+
}
15311534
module allocator_arg_t { header "__memory/allocator_arg_t.h" }
15321535
module allocator_destructor { header "__memory/allocator_destructor.h" }
15331536
module allocator_traits { header "__memory/allocator_traits.h" }
@@ -1603,7 +1606,10 @@ module std [system] {
16031606
module new {
16041607
header "new"
16051608
module align_val_t { header "__new/align_val_t.h" }
1606-
module allocate { header "__new/allocate.h" }
1609+
module allocate {
1610+
header "__new/allocate.h"
1611+
export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1612+
}
16071613
module destroying_delete_t { header "__new/destroying_delete_t.h" }
16081614
module exceptions { header "__new/exceptions.h" }
16091615
module global_new_delete {

0 commit comments

Comments
 (0)