[libc-commits] [libc] [libc] Add libc-headers-build custom target (PR #191160)

via libc-commits libc-commits at lists.llvm.org
Thu Apr 9 04:00:58 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Jeff Bailey (kaladron)

<details>
<summary>Changes</summary>

Added the libc-headers-build custom target depending on libc-headers.

This allows troubleshooting headers without needing to install them first.

---
Full diff: https://github.com/llvm/llvm-project/pull/191160.diff


1 Files Affected:

- (modified) libc/include/CMakeLists.txt (+1) 


``````````diff
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)

``````````

</details>


https://github.com/llvm/llvm-project/pull/191160


More information about the libc-commits mailing list