[libc++] Give headers that require C++14 a cplusplus14 requires in the modulemap
authorRaphael Isemann <teemperor@gmail.com>
Mon, 24 Feb 2020 19:20:54 +0000 (20:20 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Mon, 24 Feb 2020 19:20:55 +0000 (20:20 +0100)
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.

libcxx/include/module.modulemap

index 698cc19..535785b 100644 (file)
@@ -232,6 +232,7 @@ module std [system] {
     export *
   }
   module barrier {
+    requires cplusplus14
     header "barrier"
     export *
   }
@@ -339,6 +340,7 @@ module std [system] {
     export *
   }
   module latch {
+    requires cplusplus14
     header "latch"
     export *
   }
@@ -409,6 +411,7 @@ module std [system] {
     export *
   }
   module semaphore {
+    requires cplusplus14
     header "semaphore"
     export *
   }