Skip to content

Commit c923c02

Browse files
committed
Work around a compiler bug with Modules
1 parent 51ee4d3 commit c923c02

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
@@ -1525,7 +1525,10 @@ module std [system] {
15251525
module aligned_alloc { header "__memory/aligned_alloc.h" }
15261526
module allocate_at_least { header "__memory/allocate_at_least.h" }
15271527
module allocation_guard { header "__memory/allocation_guard.h" }
1528-
module allocator { header "__memory/allocator.h" }
1528+
module allocator {
1529+
header "__memory/allocator.h"
1530+
export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1531+
}
15291532
module allocator_arg_t { header "__memory/allocator_arg_t.h" }
15301533
module allocator_destructor { header "__memory/allocator_destructor.h" }
15311534
module allocator_traits { header "__memory/allocator_traits.h" }
@@ -1601,7 +1604,10 @@ module std [system] {
16011604
module new {
16021605
header "new"
16031606
module align_val_t { header "__new/align_val_t.h" }
1604-
module allocate { header "__new/allocate.h" }
1607+
module allocate {
1608+
header "__new/allocate.h"
1609+
export * // TODO: Workaround for https://github.com/llvm/llvm-project/issues/120108
1610+
}
16051611
module destroying_delete_t { header "__new/destroying_delete_t.h" }
16061612
module exceptions { header "__new/exceptions.h" }
16071613
module global_new_delete {

0 commit comments

Comments
 (0)