File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -157,13 +157,17 @@ if("${SwiftCore_OBJECT_FORMAT}" STREQUAL "elfx")
157
157
DESTINATION "${CMAKE_INSTALL_LIBDIR} /swift/${SwiftCore_PLATFORM_SUBDIR} /${SwiftCore_ARCH_SUBDIR} "
158
158
RENAME swiftrt.o)
159
159
elseif ("${SwiftCore_OBJECT_FORMAT} " STREQUAL "coffx" )
160
+ add_library (swiftrtT OBJECT SwiftRT-COFF.cpp)
161
+ target_compile_definitions (swiftrtT PRIVATE
162
+ SWIFT_STATIC_STDLIB)
163
+ target_link_libraries (swiftrtT PRIVATE swiftShims)
164
+ install (FILES $<TARGET_OBJECTS:swiftrtT>
165
+ DESTINATION "${CMAKE_INSTALL_LIBDIR} /swift/${SwiftCore_PLATFORM_SUBDIR} /${SwiftCore_ARCH_SUBDIR} "
166
+ RENAME swiftrtT.obj)
167
+
160
168
add_library (swiftrt OBJECT SwiftRT-COFF.cpp)
161
- target_compile_definitions (swiftrt PRIVATE
162
- $<$<NOT :$<BOOL :${BUILD_SHARED_LIBS} >>:SWIFT_STATIC_STDLIB>)
163
169
target_link_libraries (swiftrt PRIVATE swiftShims)
164
170
install (FILES $<TARGET_OBJECTS:swiftrt>
165
- # The driver requires that swifrt.obj is under `usr/lib/swift/<platform>/<arch>`
166
- # Regardless of settings
167
171
DESTINATION "${CMAKE_INSTALL_LIBDIR} /swift/${SwiftCore_PLATFORM_SUBDIR} /${SwiftCore_ARCH_SUBDIR} "
168
172
RENAME swiftrt.obj)
169
173
elseif (NOT "${SwiftCore_OBJECT_FORMAT} " STREQUAL "x" )
You can’t perform that action at this time.
0 commit comments