File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -307,6 +307,19 @@ option(SWIFT_BUILD_SOURCEKIT
307
307
"Build SourceKit"
308
308
${SWIFT_BUILD_SOURCEKIT_default} )
309
309
310
+ #
311
+ # Assume a new enough ar to generate the index at construction time. This avois
312
+ # having to invoke ranlib as a secondary command.
313
+ #
314
+
315
+ set (CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>" )
316
+ set (CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>" )
317
+ set (CMAKE_C_ARCHIVE_FINISH "" )
318
+
319
+ set (CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>" )
320
+ set (CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>" )
321
+ set (CMAKE_CXX_ARCHIVE_FINISH "" )
322
+
310
323
#
311
324
# Include CMake modules
312
325
#
You can’t perform that action at this time.
0 commit comments