Skip to content

Commit 193789f

Browse files
committed
Update CMakeLists.txt
Add `-parse-as-library` to the build for `@main`.
1 parent f5a30d9 commit 193789f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/sourcekit-lsp/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ target_link_libraries(sourcekit-lsp PRIVATE
66
LanguageServerProtocolJSONRPC
77
SKCore
88
SourceKitLSP)
9+
target_compile_options(sourcekit-lsp PRIVATE
10+
-parse-as-library)
911
target_link_libraries(sourcekit-lsp PRIVATE
1012
$<$<NOT:$<PLATFORM_ID:Darwin>>:FoundationXML>)
1113

0 commit comments

Comments
 (0)