File tree Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Expand file tree Collapse file tree 4 files changed +9
-27
lines changed Original file line number Diff line number Diff line change @@ -1095,7 +1095,6 @@ else()
1095
1095
# Some tools (e.g. swift-reflection-dump) rely on a host swiftReflection, so
1096
1096
# ensure we build that when building tools.
1097
1097
if (SWIFT_INCLUDE_TOOLS )
1098
- add_subdirectory (stdlib/public/Reflection )
1099
1098
add_subdirectory (stdlib/public/SwiftShims )
1100
1099
endif ()
1101
1100
endif ()
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ add_subdirectory(RemoteAST)
37
37
add_subdirectory (Sema )
38
38
add_subdirectory (Serialization )
39
39
add_subdirectory (SwiftDemangle )
40
+ add_subdirectory (SwiftReflection )
40
41
add_subdirectory (SIL )
41
42
add_subdirectory (SILGen )
42
43
add_subdirectory (SILOptimizer )
Original file line number Diff line number Diff line change
1
+
2
+ add_swift_host_library (swiftReflection STATIC
3
+ ${SWIFT_SOURCE_DIR} /stdlib/public/Reflection/MetadataSource.cpp
4
+ ${SWIFT_SOURCE_DIR} /stdlib/public/Reflection/TypeLowering.cpp
5
+ ${SWIFT_SOURCE_DIR} /stdlib/public/Reflection/TypeRef.cpp
6
+ ${SWIFT_SOURCE_DIR} /stdlib/public/Reflection/TypeRefBuilder.cpp )
7
+ target_link_libraries (swiftReflection PUBLIC
8
+ swiftDemangling )
Original file line number Diff line number Diff line change @@ -28,29 +28,3 @@ if(SWIFT_BUILD_STDLIB)
28
28
INSTALL_IN_COMPONENT dev )
29
29
endif ()
30
30
31
- # Build a specific version for the host with the host toolchain. This is going
32
- # to be used by tools (e.g. lldb)
33
- if (SWIFT_INCLUDE_TOOLS )
34
- if (NOT SWIFT_BUILD_STDLIB )
35
- add_custom_target (swiftReflection-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR} )
36
- endif ()
37
-
38
- if (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
39
- set (CURRENT_CMAKE_C_COMPILER ${CMAKE_C_COMPILER} )
40
- set (CURRENT_CMAKE_CXX_COMPILER ${CMAKE_CXX_COMPILER} )
41
- set (CMAKE_C_COMPILER ${HOST_CMAKE_C_COMPILER} )
42
- set (CMAKE_CXX_COMPILER ${HOST_CMAKE_CXX_COMPILER} )
43
- endif ()
44
-
45
- add_swift_host_library (swiftReflection STATIC
46
- ${swiftReflection_SOURCES} )
47
- target_compile_options (swiftReflection PRIVATE
48
- ${SWIFT_RUNTIME_CXX_FLAGS} )
49
- set_property (TARGET swiftReflection
50
- APPEND_STRING PROPERTY LINK_FLAGS ${SWIFT_RUNTIME_LINK_FLAGS} )
51
-
52
- if (NOT SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER )
53
- set (CMAKE_C_COMPILER ${CURRENT_CMAKE_C_COMPILER} )
54
- set (CMAKE_CXX_COMPILER ${CURRENT_CMAKE_CXX_COMPILER} )
55
- endif ()
56
- endif ()
You can’t perform that action at this time.
0 commit comments