[libcxx-commits] [libcxx] b61e83e - [libc++] Give headers that require C++14 a cplusplus14 requires in the modulemap

Raphael Isemann via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 24 11:21:55 PST 2020


Author: Raphael Isemann
Date: 2020-02-24T20:20:55+01:00
New Revision: b61e83eb0e31c1e6006569b43bb98a61ff44ca4c

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

LOG: [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.

Added: 
    

Modified: 
    libcxx/include/module.modulemap

Removed: 
    


################################################################################
diff  --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index 698cc193de53..535785be8cf2 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -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 *
   }


        


More information about the libcxx-commits mailing list