[libc-commits] [libc] [libc] Add libc-headers-build custom target (PR #191160)
Jeff Bailey via libc-commits
libc-commits at lists.llvm.org
Thu Apr 9 04:00:23 PDT 2026
https://github.com/kaladron created https://github.com/llvm/llvm-project/pull/191160
Added the libc-headers-build custom target depending on libc-headers.
This allows troubleshooting headers without needing to install them first.
>From c6cac4f8098933799c6ba7c16da2831625f3f966 Mon Sep 17 00:00:00 2001
From: Jeff Bailey <jbailey at raspberryginger.com>
Date: Thu, 9 Apr 2026 11:59:01 +0100
Subject: [PATCH] [libc] Add libc-headers-build custom target
Added the libc-headers-build custom target depending on libc-headers.
This allows troubleshooting headers without needing to install them first.
---
libc/include/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/libc/include/CMakeLists.txt b/libc/include/CMakeLists.txt
index 3375e4e21e338..017b671af9fdd 100644
--- a/libc/include/CMakeLists.txt
+++ b/libc/include/CMakeLists.txt
@@ -935,6 +935,7 @@ endfunction(get_all_install_header_targets)
get_all_install_header_targets(all_install_header_targets ${TARGET_PUBLIC_HEADERS})
add_library(libc-headers INTERFACE)
add_dependencies(libc-headers ${all_install_header_targets})
+add_custom_target(libc-headers-build DEPENDS libc-headers)
target_include_directories(libc-headers SYSTEM INTERFACE ${LIBC_INCLUDE_DIR})
foreach(target IN LISTS all_install_header_targets)
More information about the libc-commits
mailing list