Skip to content

Commit 63b967c

Browse files
authored
Merge pull request #69629 from compnerd/content
build: add SwiftIDEUtils to the Swift Syntax modules
2 parents 17f32ca + 27eafd4 commit 63b967c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ if (SWIFT_BUILD_SWIFT_SYNTAX)
2525
SwiftSyntaxMacros
2626
SwiftSyntaxMacroExpansion
2727
SwiftCompilerPluginMessageHandling
28+
# Support for LSP
29+
SwiftIDEUtils
2830
)
2931

3032
# Install shared runtime libraries
@@ -56,6 +58,9 @@ if (SWIFT_BUILD_SWIFT_SYNTAX)
5658
COMPONENT swift-syntax-lib)
5759
endif()
5860

61+
add_dependencies(swift-syntax-lib
62+
${SWIFT_SYNTAX_MODULES})
63+
5964
# Install Swift module interface files.
6065
foreach(module ${SWIFT_SYNTAX_MODULES})
6166
set(module_dir "${module}.swiftmodule")
@@ -64,6 +69,11 @@ if (SWIFT_BUILD_SWIFT_SYNTAX)
6469
DESTINATION "lib${LLVM_LIBDIR_SUFFIX}/swift/host/${module_dir}"
6570
COMPONENT swift-syntax-lib)
6671
endforeach()
72+
73+
export(TARGETS ${SWIFT_SYNTAX_MODULES}
74+
NAMESPACE SwiftSyntax::
75+
FILE ${CMAKE_BINARY_DIR}/cmake/modules/SwiftSyntaxConfig.cmake
76+
EXPORT_LINK_INTERFACE_LIBRARIES)
6777
endif()
6878

6979
add_subdirectory(APIDigester)

0 commit comments

Comments
 (0)