[PATCH] D37134: [libc++] Rerun ranlib manually after merging the static libraries
    Martin Storsjö via Phabricator via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Aug 25 02:20:32 PDT 2017
    
    
  
mstorsjo created this revision.
Herald added a subscriber: mgorny.
In cross build setups, the ar used in merge_archives.py might not be the right one for the target (and the invocation doesn't include the 's' modifier for updating the archive index); make sure to rebuild the index for the static library.
https://reviews.llvm.org/D37134
Files:
  lib/CMakeLists.txt
Index: lib/CMakeLists.txt
===================================================================
--- lib/CMakeLists.txt
+++ lib/CMakeLists.txt
@@ -272,6 +272,8 @@
       "$<TARGET_LINKER_FILE:cxx_static>"
       "${MERGE_ARCHIVES_ABI_TARGET}"
       "${MERGE_ARCHIVES_SEARCH_PATHS}"
+    COMMAND
+      ${CMAKE_RANLIB} $<TARGET_LINKER_FILE:cxx_static>
     WORKING_DIRECTORY ${LIBCXX_BUILD_DIR}
     )
   endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37134.112667.patch
Type: text/x-patch
Size: 410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170825/e12d3c93/attachment.bin>
    
    
More information about the cfe-commits
mailing list