[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 03:39:04 PST 2026


https://github.com/kaladron created https://github.com/llvm/llvm-project/pull/176557

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.

>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] [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
 )
 



More information about the libc-commits mailing list