[llvm-branch-commits] [libcxx] 062aab1 - [libc++] Add missing <stdbool.h> to the modulemap

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 11 23:37:05 PDT 2022


Author: Louis Dionne
Date: 2022-08-12T08:36:00+02:00
New Revision: 062aab1979c8d664dd3607f3a0575dd7f3a306b2

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

LOG: [libc++] Add missing <stdbool.h> to the modulemap

It used to be defined by the compiler, but libc++ now provides it.

Differential Revision: https://reviews.llvm.org/D131201

(cherry picked from commit 0a5c344a84a452452185f3a6bd7d7679a42abb42)

Added: 
    

Modified: 
    libcxx/include/module.modulemap.in

Removed: 
    


################################################################################
diff  --git a/libcxx/include/module.modulemap.in b/libcxx/include/module.modulemap.in
index 204fe408b1e79..83c6384433ce3 100644
--- a/libcxx/include/module.modulemap.in
+++ b/libcxx/include/module.modulemap.in
@@ -59,7 +59,10 @@ module std [system] {
     // FIXME: <stdalign.h> is missing.
     // <signal.h> provided by C library.
     // <stdarg.h> provided by compiler.
-    // <stdbool.h> provided by compiler.
+    module stdbool_h {
+      // <stdbool.h>'s __bool_true_false_are_defined macro requires textual inclusion.
+      textual header "stdbool.h"
+    }
     module stddef_h {
       // <stddef.h>'s __need_* macros require textual inclusion.
       textual header "stddef.h"


        


More information about the llvm-branch-commits mailing list