@@ -14,7 +14,7 @@ configure_file("CMakeConfig.h.in"
14
14
"${PROJECT_BINARY_DIR} /include/swift/Runtime/CMakeConfig.h"
15
15
ESCAPE_QUOTES @ONLY )
16
16
17
- add_library (swiftRuntime OBJECT
17
+ add_library (swiftRuntimeCore OBJECT
18
18
"${PROJECT_SOURCE_DIR} /CompatibilityOverride/CompatibilityOverride.cpp"
19
19
AnyHashableSupport.cpp
20
20
Array.cpp
@@ -68,7 +68,7 @@ add_library(swiftRuntime OBJECT
68
68
Win32 .cpp )
69
69
70
70
if (SwiftCore_ENABLE_RUNTIME_LEAK_CHECKER )
71
- target_sources (swiftRuntime PRIVATE
71
+ target_sources (swiftRuntimeCore PRIVATE
72
72
Leaks.mm )
73
73
endif ()
74
74
@@ -83,10 +83,10 @@ endif()
83
83
84
84
# TODO: Probably worth considering putting half of these in a RuntimeConfig.h.in
85
85
# file rather than pushing them through macro flags.
86
- target_compile_definitions (swiftRuntime
86
+ target_compile_definitions (swiftRuntimeCore
87
87
PRIVATE
88
88
-DSWIFT_RUNTIME
89
- -DSWIFT_TARGET_LIBRARY_NAME=swiftRuntime
89
+ -DSWIFT_TARGET_LIBRARY_NAME=swiftRuntimeCore
90
90
$< $< BOOL:${BUILD_SHARED_LIBS} > :-DswiftCore_EXPORTS>
91
91
$< $< BOOL:${SwiftCore_ENABLE_BACKTRACING} > :-DSWIFT_ENABLE_BACKTRACING>
92
92
$< $< BOOL:${SwiftCore_ENABLE_OVERRIDABLE_RETAIN_RELEASE} > :-DSWIFT_STDLIB_OVERRIDABLE_RETAIN_RELEASE>
@@ -105,39 +105,39 @@ target_compile_definitions(swiftRuntime
105
105
PUBLIC
106
106
$< $< BOOL:${SwiftCore_ENABLE_OS_TRACE_LAZY_INIT} > :-DSWIFT_USE_OS_TRACE_LAZY_INIT> )
107
107
108
- target_include_directories (swiftRuntime PRIVATE
108
+ target_include_directories (swiftRuntimeCore PRIVATE
109
109
"${PROJECT_BINARY_DIR} /include"
110
110
"${CMAKE_CURRENT_SOURCE_DIR} " )
111
111
112
- target_link_libraries (swiftRuntime PRIVATE
112
+ target_link_libraries (swiftRuntimeCore PRIVATE
113
113
$< $< PLATFORM_ID:Windows> :User32>
114
114
swiftShims
115
115
swiftDemangling )
116
116
117
117
# FIXME: Refactor so that we're not pulling sources from the compiler files
118
- target_sources (swiftRuntime PRIVATE
118
+ target_sources (swiftRuntimeCore PRIVATE
119
119
"${SwiftCore_SWIFTC_SOURCE_DIR} /lib/Threading/ThreadSanitizer.cpp" )
120
120
121
121
# FIXME: Private.h uses `Demangler.h` and `TypeLookupError.h` from the compiler
122
122
# headers. We should split out the parts that are needed by the runtime
123
123
# to avoid pulling in headers from the compiler.
124
- target_include_directories (swiftRuntime PRIVATE
124
+ target_include_directories (swiftRuntimeCore PRIVATE
125
125
"${SwiftCore_SWIFTC_SOURCE_DIR} /include" )
126
126
127
127
if (SwiftCore_ENABLE_BACKTRACING )
128
- target_sources (swiftRuntime PRIVATE
128
+ target_sources (swiftRuntimeCore PRIVATE
129
129
Backtrace.cpp
130
130
BacktraceUtils.cpp
131
131
CrashHandlerMacOS.cpp
132
132
CrashHandlerLinux.cpp )
133
133
endif ()
134
134
135
- target_sources (swiftRuntime PRIVATE
135
+ target_sources (swiftRuntimeCore PRIVATE
136
136
ErrorObject.mm
137
137
SwiftObject.mm )
138
138
139
139
if (SwiftCore_ENABLE_OBJC_INTEROP )
140
- target_sources (swiftRuntime PRIVATE
140
+ target_sources (swiftRuntimeCore PRIVATE
141
141
SwiftValue.mm
142
142
ReflectionMirrorObjC.mm
143
143
ObjCRuntimeGetImageNameFromClass.mm )
0 commit comments