[libc-commits] [libc] [libc] Fix generated header definitions in cmake (PR #104628)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Aug 16 11:39:05 PDT 2024
https://github.com/michaelrj-google created https://github.com/llvm/llvm-project/pull/104628
Some new headers were not being properly built with
new headergen, since they were using the old "add_gen_header" instead of
the new "add_header_macro". This patch fixes the issue.
>From 7f4450bcb3a6d585989a512a517fae3bb6aacf36 Mon Sep 17 00:00:00 2001
From: Michael Jones <michaelrj at google.com>
Date: Thu, 15 Aug 2024 16:34:49 -0700
Subject: [PATCH] [libc] Fix generated header definitions in cmake
Some new headers were not being properly built with
new headergen, since they were using the old "add_gen_header" instead of
the new "add_header_macro". This patch fixes the issue.
---
libc/include/CMakeLists.txt | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 2b6eb61782a632..4e3ae7f801f4a0 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -420,19 +420,21 @@ add_header_macro(
.llvm-libc-types.posix_spawn_file_actions_t
)
-add_gen_header(
+add_header_macro(
link
- DEF_FILE link.h.def
- GEN_HDR link.h
+ ../libc/newhdrgen/yaml/link.yaml
+ link.h.def
+ link.h
DEPENDS
.llvm_libc_common_h
.llvm-libc-macros.link_macros
)
-add_gen_header(
+add_header_macro(
elf
- DEF_FILE elf.h.def
- GEN_HDR elf.h
+ ../libc/newhdrgen/yaml/elf.yaml
+ elf.h.def
+ elf.h
DEPENDS
.llvm-libc-macros.elf_macros
)
More information about the libc-commits
mailing list