[libc-commits] [libc] [libc] Add libc-headers-build custom target (PR #191160)
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Thu Apr 9 10:52:32 PDT 2026
================
@@ -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)
----------------
petrhosek wrote:
This pattern should result in slightly smaller Ninja file because the list of header targets doesn't need to be expanded twice, but consistency across runtimes is IMHO more important.
https://github.com/llvm/llvm-project/pull/191160
More information about the libc-commits
mailing list