[libc-commits] [libc] [libc] newheadergen: configured cmake (PR #98828)
via libc-commits
libc-commits at lists.llvm.org
Mon Jul 15 15:50:20 PDT 2024
================
@@ -17,627 +17,1301 @@ add_header(
__llvm-libc-common.h
)
-add_gen_header(
- ctype
- DEF_FILE ctype.h.def
- GEN_HDR ctype.h
- DEPENDS
- .llvm_libc_common_h
-)
+if (USE_NEW_HEADER_GEN)
+ add_gen_header2(
+ ctype
+ YAML_FILE ../libc/newhdrgen/yaml/ctype.yaml
+ DEF_FILE ctype.h.def
+ GEN_HDR ctype.h
+ DEPENDS
+ .llvm_libc_common_h
+ )
-add_gen_header(
- dirent
- DEF_FILE dirent.h.def
- GEN_HDR dirent.h
- DEPENDS
- .llvm_libc_common_h
- .llvm-libc-types.ino_t
- .llvm-libc-types.DIR
- .llvm-libc-types.struct_dirent
-)
+ add_gen_header2(
----------------
aaryanshukla wrote:
make sure all of these are switched to the new function name
https://github.com/llvm/llvm-project/pull/98828
More information about the libc-commits
mailing list