File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -159,11 +159,13 @@ if("${SwiftCore_OBJECT_FORMAT}" STREQUAL "elfx")
159
159
"${SwiftCore_SWIFTC_SOURCE_DIR} /include"
160
160
"${PROJECT_BINARY_DIR} /include" )
161
161
target_link_libraries (swiftrt PRIVATE swiftShims )
162
- # The driver requires that swifrt.o is under `usr/lib/swift/<platform>/<arch>`
163
- # Regardless of settings
162
+ # The driver requires that swiftrt.o is under
163
+ # `usr/lib/(swift|swift_static)/<platform>/<arch>` regardless of whether the
164
+ # other files are under the platform and architecture subdirectories:
165
+ # https://github.com/swiftlang/swift-driver/blob/f66e33575150cc778289b5f573218c7a0c70bab6/Sources/SwiftDriver/Jobs/GenericUnixToolchain%2BLinkerSupport.swift#L186
164
166
install (FILES $< TARGET_OBJECTS:swiftrt>
165
167
COMPONENT SwiftCore_runtime
166
- DESTINATION "${CMAKE_INSTALL_LIBDIR} /swift/${SwiftCore_PLATFORM_SUBDIR} /${SwiftCore_ARCH_SUBDIR} "
168
+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /swift$<BOOL: ${BUILD_SHARED_LIBS} >:_static> /${SwiftCore_PLATFORM_SUBDIR} /${SwiftCore_ARCH_SUBDIR} "
167
169
RENAME swiftrt.o )
168
170
elseif ("${SwiftCore_OBJECT_FORMAT} " STREQUAL "coffx" )
169
171
add_library (swiftrtT OBJECT SwiftRT-COFF.cpp )
You can’t perform that action at this time.
0 commit comments