mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This doesn't make sense on Windows and from what compnerd has said it doesnt even appear in the ninja rules file. This also moves this rule out of the main flow of the top level CMakeLists.txt file so I can reuse it when compiling the stdlib using a sub-cmake invocation.
14 lines
512 B
CMake
14 lines
512 B
CMake
|
|
#
|
|
# Assume a new enough ar to generate the index at construction time. This avoids
|
|
# having to invoke ranlib as a secondary command.
|
|
#
|
|
|
|
set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
set(CMAKE_C_ARCHIVE_FINISH "")
|
|
|
|
set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> crs <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> qs <TARGET> <LINK_FLAGS> <OBJECTS>")
|
|
set(CMAKE_CXX_ARCHIVE_FINISH "")
|