Skip to content

Commit c8f882d

Browse files
committed
[Build] Rename the swiftRuntime target in the new build system.
This needs to be renamed now to match the new name in the old build system.
1 parent 7c7f9fd commit c8f882d

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

Runtimes/Core/core/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ target_compile_options(swiftCore PRIVATE
302302

303303
target_link_libraries(swiftCore
304304
PRIVATE
305-
swiftRuntime
305+
swiftRuntimeCore
306306
swiftLLVMSupport
307307
swiftDemangling
308308
swiftShims
@@ -312,7 +312,7 @@ target_link_options(swiftCore PRIVATE
312312
-nostartfiles)
313313
if(NOT POLICY CMP0157)
314314
target_compile_options(swiftCore PRIVATE
315-
$<TARGET_OBJECTS:swiftRuntime>
315+
$<TARGET_OBJECTS:swiftRuntimeCore>
316316
$<TARGET_OBJECTS:swiftLLVMSupport>
317317
$<TARGET_OBJECTS:swiftDemangling>
318318
$<TARGET_OBJECTS:swiftStdlibStubs>

Runtimes/Core/runtime/CMakeLists.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ configure_file("CMakeConfig.h.in"
1414
"${PROJECT_BINARY_DIR}/include/swift/Runtime/CMakeConfig.h"
1515
ESCAPE_QUOTES @ONLY)
1616

17-
add_library(swiftRuntime OBJECT
17+
add_library(swiftRuntimeCore OBJECT
1818
"${PROJECT_SOURCE_DIR}/CompatibilityOverride/CompatibilityOverride.cpp"
1919
AnyHashableSupport.cpp
2020
Array.cpp
@@ -68,7 +68,7 @@ add_library(swiftRuntime OBJECT
6868
Win32.cpp)
6969

7070
if(SwiftCore_ENABLE_RUNTIME_LEAK_CHECKER)
71-
target_sources(swiftRuntime PRIVATE
71+
target_sources(swiftRuntimeCore PRIVATE
7272
Leaks.mm)
7373
endif()
7474

@@ -83,10 +83,10 @@ endif()
8383

8484
# TODO: Probably worth considering putting half of these in a RuntimeConfig.h.in
8585
# file rather than pushing them through macro flags.
86-
target_compile_definitions(swiftRuntime
86+
target_compile_definitions(swiftRuntimeCore
8787
PRIVATE
8888
-DSWIFT_RUNTIME
89-
-DSWIFT_TARGET_LIBRARY_NAME=swiftRuntime
89+
-DSWIFT_TARGET_LIBRARY_NAME=swiftRuntimeCore
9090
$<$<BOOL:${BUILD_SHARED_LIBS}>:-DswiftCore_EXPORTS>
9191
$<$<BOOL:${SwiftCore_ENABLE_BACKTRACING}>:-DSWIFT_ENABLE_BACKTRACING>
9292
$<$<BOOL:${SwiftCore_ENABLE_OVERRIDABLE_RETAIN_RELEASE}>:-DSWIFT_STDLIB_OVERRIDABLE_RETAIN_RELEASE>
@@ -105,39 +105,39 @@ target_compile_definitions(swiftRuntime
105105
PUBLIC
106106
$<$<BOOL:${SwiftCore_ENABLE_OS_TRACE_LAZY_INIT}>:-DSWIFT_USE_OS_TRACE_LAZY_INIT>)
107107

108-
target_include_directories(swiftRuntime PRIVATE
108+
target_include_directories(swiftRuntimeCore PRIVATE
109109
"${PROJECT_BINARY_DIR}/include"
110110
"${CMAKE_CURRENT_SOURCE_DIR}")
111111

112-
target_link_libraries(swiftRuntime PRIVATE
112+
target_link_libraries(swiftRuntimeCore PRIVATE
113113
$<$<PLATFORM_ID:Windows>:User32>
114114
swiftShims
115115
swiftDemangling)
116116

117117
# FIXME: Refactor so that we're not pulling sources from the compiler files
118-
target_sources(swiftRuntime PRIVATE
118+
target_sources(swiftRuntimeCore PRIVATE
119119
"${SwiftCore_SWIFTC_SOURCE_DIR}/lib/Threading/ThreadSanitizer.cpp")
120120

121121
# FIXME: Private.h uses `Demangler.h` and `TypeLookupError.h` from the compiler
122122
# headers. We should split out the parts that are needed by the runtime
123123
# to avoid pulling in headers from the compiler.
124-
target_include_directories(swiftRuntime PRIVATE
124+
target_include_directories(swiftRuntimeCore PRIVATE
125125
"${SwiftCore_SWIFTC_SOURCE_DIR}/include")
126126

127127
if(SwiftCore_ENABLE_BACKTRACING)
128-
target_sources(swiftRuntime PRIVATE
128+
target_sources(swiftRuntimeCore PRIVATE
129129
Backtrace.cpp
130130
BacktraceUtils.cpp
131131
CrashHandlerMacOS.cpp
132132
CrashHandlerLinux.cpp)
133133
endif()
134134

135-
target_sources(swiftRuntime PRIVATE
135+
target_sources(swiftRuntimeCore PRIVATE
136136
ErrorObject.mm
137137
SwiftObject.mm)
138138

139139
if(SwiftCore_ENABLE_OBJC_INTEROP)
140-
target_sources(swiftRuntime PRIVATE
140+
target_sources(swiftRuntimeCore PRIVATE
141141
SwiftValue.mm
142142
ReflectionMirrorObjC.mm
143143
ObjCRuntimeGetImageNameFromClass.mm)

0 commit comments

Comments
 (0)