[libc-commits] [libc] [libc][CMake] Add dependency on libc.include.elf for elf_proxy target (PR #176557)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Sat Jan 17 04:05:00 PST 2026
https://github.com/kaladron updated https://github.com/llvm/llvm-project/pull/176557
>From 6f4b7f80b498426c216091eb08136e002e7e0f38 Mon Sep 17 00:00:00 2001
From: Jeff Bailey <jeffbailey at google.com>
Date: Sat, 17 Jan 2026 11:34:27 +0000
Subject: [PATCH 1/2] [libc][CMake] Add dependency on libc.include.elf for
elf_proxy target
Fixes parallel build problem for check-libc target where headers are generated after they are needed. I think this was likely caused by https://github.com/llvm/llvm-project/pull/172766.
---
libc/hdr/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/libc/hdr/CMakeLists.txt b/libc/hdr/CMakeLists.txt
index fec38b3caca4e..0e54c0c15066b 100644
--- a/libc/hdr/CMakeLists.txt
+++ b/libc/hdr/CMakeLists.txt
@@ -274,6 +274,7 @@ add_gen_header(
elf_proxy.h
DEPENDS
libc.include.llvm_libc_common_h
+ libc.include.elf
PROXY
)
>From 5c7cad2a44b21942e09ab149c2525382fbe57510 Mon Sep 17 00:00:00 2001
From: Jeff Bailey <jeffbailey at google.com>
Date: Sat, 17 Jan 2026 12:04:08 +0000
Subject: [PATCH 2/2] [libc][CMake] Update dependencies for elf_proxy target to
include all ELF types
---
libc/hdr/CMakeLists.txt | 43 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 42 insertions(+), 1 deletion(-)
diff --git a/libc/hdr/CMakeLists.txt b/libc/hdr/CMakeLists.txt
index 0e54c0c15066b..1d78454ba9ffb 100644
--- a/libc/hdr/CMakeLists.txt
+++ b/libc/hdr/CMakeLists.txt
@@ -274,7 +274,48 @@ add_gen_header(
elf_proxy.h
DEPENDS
libc.include.llvm_libc_common_h
- libc.include.elf
+ libc.include.llvm-libc-types.Elf32_Addr
+ libc.include.llvm-libc-types.Elf32_Chdr
+ libc.include.llvm-libc-types.Elf32_Dyn
+ libc.include.llvm-libc-types.Elf32_Ehdr
+ libc.include.llvm-libc-types.Elf32_Half
+ libc.include.llvm-libc-types.Elf32_Lword
+ libc.include.llvm-libc-types.Elf32_Nhdr
+ libc.include.llvm-libc-types.Elf32_Off
+ libc.include.llvm-libc-types.Elf32_Phdr
+ libc.include.llvm-libc-types.Elf32_Rel
+ libc.include.llvm-libc-types.Elf32_Rela
+ libc.include.llvm-libc-types.Elf32_Shdr
+ libc.include.llvm-libc-types.Elf32_Sword
+ libc.include.llvm-libc-types.Elf32_Sym
+ libc.include.llvm-libc-types.Elf32_Verdaux
+ libc.include.llvm-libc-types.Elf32_Verdef
+ libc.include.llvm-libc-types.Elf32_Vernaux
+ libc.include.llvm-libc-types.Elf32_Verneed
+ libc.include.llvm-libc-types.Elf32_Versym
+ libc.include.llvm-libc-types.Elf32_Word
+ libc.include.llvm-libc-types.Elf64_Addr
+ libc.include.llvm-libc-types.Elf64_Chdr
+ libc.include.llvm-libc-types.Elf64_Dyn
+ libc.include.llvm-libc-types.Elf64_Ehdr
+ libc.include.llvm-libc-types.Elf64_Half
+ libc.include.llvm-libc-types.Elf64_Lword
+ libc.include.llvm-libc-types.Elf64_Nhdr
+ libc.include.llvm-libc-types.Elf64_Off
+ libc.include.llvm-libc-types.Elf64_Phdr
+ libc.include.llvm-libc-types.Elf64_Rel
+ libc.include.llvm-libc-types.Elf64_Rela
+ libc.include.llvm-libc-types.Elf64_Shdr
+ libc.include.llvm-libc-types.Elf64_Sword
+ libc.include.llvm-libc-types.Elf64_Sxword
+ libc.include.llvm-libc-types.Elf64_Sym
+ libc.include.llvm-libc-types.Elf64_Verdaux
+ libc.include.llvm-libc-types.Elf64_Verdef
+ libc.include.llvm-libc-types.Elf64_Vernaux
+ libc.include.llvm-libc-types.Elf64_Verneed
+ libc.include.llvm-libc-types.Elf64_Versym
+ libc.include.llvm-libc-types.Elf64_Word
+ libc.include.llvm-libc-types.Elf64_Xword
PROXY
)
More information about the libc-commits
mailing list