Skip to content

Commit 00a6fb9

Browse files
committed
build: link Yams privately
Because Yams is used with `@_implementationOnly`, the clients of `SwiftDriver` do not need to link against `Yams` or `CYaml`. This was uncovered when building SourceKit-LSP.
1 parent 5d80fe4 commit 00a6fb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftDriver/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ target_link_libraries(SwiftDriver PUBLIC
8383
TSCBasic
8484
TSCUtility
8585
SwiftOptions
86-
llbuildSwift
86+
llbuildSwift)
87+
target_link_libraries(SwiftDriver PRIVATE
8788
CYaml
8889
Yams)
8990

0 commit comments

Comments
 (0)