File tree Expand file tree Collapse file tree 3 files changed +6
-28
lines changed
stdlib/public/SwiftRemoteMirror Expand file tree Collapse file tree 3 files changed +6
-28
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ add_subdirectory(Sema)
38
38
add_subdirectory (Serialization )
39
39
add_subdirectory (SwiftDemangle )
40
40
add_subdirectory (SwiftReflection )
41
+ add_subdirectory (SwiftRemoteMirror )
41
42
add_subdirectory (SIL )
42
43
add_subdirectory (SILGen )
43
44
add_subdirectory (SILOptimizer )
Original file line number Diff line number Diff line change
1
+ add_swift_host_library (swiftRemoteMirror STATIC
2
+ ${SWIFT_SOURCE_DIR} /stdlib/public/SwiftRemoteMirror/SwiftRemoteMirror.cpp )
3
+ if (CMAKE_SYSTEM_NAME STREQUAL Windows )
4
+ target_compile_definitions (swiftRemoteMirror PRIVATE _LIB )
5
+ endif ()
Original file line number Diff line number Diff line change @@ -14,31 +14,3 @@ if(SWIFT_BUILD_DYNAMIC_STDLIB)
14
14
INSTALL_IN_COMPONENT
15
15
swift-remote-mirror )
16
16
endif ()
17
-
18
- # Build a specific version for the host with the host toolchain. This is going
19
- # to be used by tools (e.g. lldb)
20
- if (SWIFT_INCLUDE_TOOLS )
21
- if (NOT SWIFT_BUILD_DYNAMIC_STDLIB )
22
- add_custom_target (swiftRemoteMirror-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR} )
23
- endif ()
24
-
25
- if (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
26
- set (CURRENT_CMAKE_C_COMPILER ${CMAKE_C_COMPILER} )
27
- set (CURRENT_CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER} )
28
- set (CMAKE_C_COMPILER ${HOST_CMAKE_C_COMPILER} )
29
- set (CMAKE_CXX_COMPILER ${HOST_CMAKE_CXX_COMPILER} )
30
- endif ()
31
-
32
- add_swift_host_library (swiftRemoteMirror STATIC
33
- SwiftRemoteMirror.cpp )
34
- target_compile_definitions (swiftRemoteMirror PRIVATE _LIB )
35
- target_compile_options (swiftRemoteMirror PRIVATE
36
- ${SWIFT_RUNTIME_CXX_FLAGS} )
37
- set_property (TARGET swiftRemoteMirror APPEND_STRING PROPERTY LINK_FLAGS
38
- ${SWIFT_RUNTIME_LINK_FLAGS} )
39
-
40
- if (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
41
- set (CMAKE_C_COMPILER ${CURRENT_CMAKE_C_COMPILER} )
42
- set (CMAKE_CXX_COMPILER ${CURRENT_CMAKE_CXX_COMPILER} )
43
- endif ()
44
- endif ()
You can’t perform that action at this time.
0 commit comments