[libc-commits] [PATCH] D77256: [libc] Collect objects only from visible deps of an object library.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 9 13:14:47 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG939fa1b5604c: [libc] Collect objects only from visible deps of an object library. (authored by sivachandra).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77256/new/

https://reviews.llvm.org/D77256

Files:
  libc/cmake/modules/LLVMLibCRules.cmake


Index: libc/cmake/modules/LLVMLibCRules.cmake
===================================================================
--- libc/cmake/modules/LLVMLibCRules.cmake
+++ libc/cmake/modules/LLVMLibCRules.cmake
@@ -142,7 +142,12 @@
       ${target_name}
       ${ADD_OBJECT_DEPENDS}
     )
-    foreach(obj_target IN LISTS ADD_ENTRYPOINT_OBJ_SPECIAL_OBJECTS)
+    foreach(obj_target IN LISTS ADD_OBJECT_DEPENDS)
+      if(NOT TARGET ${obj_target})
+        # Not all targets will be visible. So, we will ignore those which aren't
+        # visible yet.
+        continue()
+      endif()
       get_target_property(obj_type ${obj_target} "TARGET_TYPE")
       if((NOT obj_type) OR (NOT (${obj_type} STREQUAL ${OBJECT_LIBRARY_TARGET_TYPE})))
         continue()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77256.256373.patch
Type: text/x-patch
Size: 751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20200409/65e05797/attachment.bin>


More information about the libc-commits mailing list