Skip to content

Commit f4851a9

Browse files
committed
runtime: adjust the style for target_link_libraries
Using a single library per line model allows for an easier time to adjust the list as well as reduces the diff between revisions.
1 parent 215db61 commit f4851a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Runtimes/Core/runtime/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ target_include_directories(swiftRuntime PRIVATE
8989
"${PROJECT_BINARY_DIR}/include"
9090
"${CMAKE_CURRENT_SOURCE_DIR}")
9191

92-
target_link_libraries(swiftRuntime PRIVATE swiftShims)
92+
target_link_libraries(swiftRuntime PRIVATE
93+
swiftShims)
9394

9495
# FIXME: Refactor so that we're not pulling sources from the compiler files
9596
target_sources(swiftRuntime PRIVATE

Runtimes/Core/stubs/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ target_compile_definitions(swiftStdlibStubs PRIVATE
3030
$<$<BOOL:${BUILD_SHARED_LIBS}>:-DswiftCore_EXPORTS>
3131
$<$<BOOL:${SwiftCore_ENABLE_UNICODE_DATA}>:-DSWIFT_STDLIB_ENABLE_UNICODE_DATA>)
3232

33+
target_link_libraries(swiftStdlibStubs PRIVATE
34+
swiftShims)
3335

34-
target_link_libraries(swiftStdlibStubs PRIVATE swiftShims)
3536
target_include_directories(swiftStdlibStubs PRIVATE
3637
"${PROJECT_BINARY_DIR}/include"
3738
# FIXME: pulls in headers from the main compiler build

0 commit comments

Comments
 (0)