Skip to content

Commit f27139e

Browse files
authored
[test] Wire libMockPlugin and swift-plugin-server as test dependencies (#74808)
The build script will build these pieces because they are wired to the tools and compiler components, but when using `ninja` or `cmake` directly to clean the build, and then later `check-swift-validation` and other test targets, it would not rebuild those targets, failing many of the macros/plugins tests.
1 parent dd13e2f commit f27139e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function(get_test_dependencies SDK result_var_name)
5151

5252
if (SWIFT_INCLUDE_TOOLS)
5353
list(APPEND deps_binaries
54+
libMockPlugin
5455
lldb-moduleimport-test
5556
swift-frontend
5657
swift-demangle
@@ -64,6 +65,10 @@ function(get_test_dependencies SDK result_var_name)
6465
if(SWIFT_BUILD_SOURCEKIT)
6566
list(APPEND deps_binaries sourcekitd-test complete-test)
6667
endif()
68+
69+
if(SWIFT_BUILD_SWIFT_SYNTAX)
70+
list(APPEND deps_binaries swift-plugin-server)
71+
endif()
6772
endif()
6873

6974
if(NOT SWIFT_BUILT_STANDALONE)

0 commit comments

Comments
 (0)