[libcxx-commits] [libcxx] 4128a4a - [libc++] Mark <stdatomic.h> as requiring C++23

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Thu May 12 11:45:54 PDT 2022


Author: Louis Dionne
Date: 2022-05-12T14:45:49-04:00
New Revision: 4128a4a6c219a6c83483d4538a59ed8f523868a5

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

LOG: [libc++] Mark <stdatomic.h> as requiring C++23

Otherwise, we might get errors with modules in pre-C++23 when mixing
<atomic> and <stdatomic.h>. This should fix breakage on Green Dragon.

Added: 
    

Modified: 
    libcxx/include/module.modulemap

Removed: 
    


################################################################################
diff  --git a/libcxx/include/module.modulemap b/libcxx/include/module.modulemap
index 6cf0467d3226..7ae3d106ed5f 100644
--- a/libcxx/include/module.modulemap
+++ b/libcxx/include/module.modulemap
@@ -51,6 +51,7 @@ module std [system] {
       export *
     }
     module stdatomic_h {
+      requires cplusplus23
       header "stdatomic.h"
       export *
     }


        


More information about the libcxx-commits mailing list