Skip to content

Commit b61e83e

Browse files
committed
[libc++] Give headers that require C++14 a cplusplus14 requires in the modulemap
https://reviews.llvm.org/D68480 added those headers and made the std module only usable with C++14 or later as the submodules were not marked as requiring C++14 or later. This just adds the missing requires directives.
1 parent 8358ddb commit b61e83e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libcxx/include/module.modulemap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ module std [system] {
232232
export *
233233
}
234234
module barrier {
235+
requires cplusplus14
235236
header "barrier"
236237
export *
237238
}
@@ -339,6 +340,7 @@ module std [system] {
339340
export *
340341
}
341342
module latch {
343+
requires cplusplus14
342344
header "latch"
343345
export *
344346
}
@@ -409,6 +411,7 @@ module std [system] {
409411
export *
410412
}
411413
module semaphore {
414+
requires cplusplus14
412415
header "semaphore"
413416
export *
414417
}

0 commit comments

Comments
 (0)