[libc-commits] [PATCH] D158897: [libc] Add libc archive dependency on the header target
Petr Hosek via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Aug 25 14:38:22 PDT 2023
phosek created this revision.
phosek added reviewers: michaelrj, sivachandra.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
phosek requested review of this revision.
This ensures that libc headers are built and installed together with
the libc archive in the full build.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158897
Files:
libc/lib/CMakeLists.txt
Index: libc/lib/CMakeLists.txt
===================================================================
--- libc/lib/CMakeLists.txt
+++ libc/lib/CMakeLists.txt
@@ -33,6 +33,9 @@
PROPERTIES
ARCHIVE_OUTPUT_NAME ${archive_0}
)
+ if(LLVM_LIBC_FULL_BUILD)
+ add_dependencies(${archive_1} libc-headers)
+ endif()
list(APPEND added_archive_targets ${archive_1})
endforeach()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158897.553634.patch
Type: text/x-patch
Size: 389 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230825/ff29d3d0/attachment.bin>
More information about the libc-commits
mailing list