Files
Ben Barham ab12429651 Update the compiler arguments used for background AST builds
This fixes two issues:
1. The SwiftPM build system was setup without passing through whether it
   should prepare or not. This meant that we lost eg. the argument to
   allow compiler errors when building the AST (even though it was set
   when building the modules)
2. The compiler argument adjustment to remove harmful and unnecessary
   flags only applied to indexing arguments, not those passed to the AST
   builds

Resolves rdar://141508656.
2025-02-07 11:57:30 -08:00

24 lines
741 B
CMake

add_library(LanguageServerProtocolExtensions STATIC
Connection+Send.swift
DocumentURI+CustomLogStringConvertible.swift
DocumentURI+symlinkTarget.swift
Language+Inference.swift
LocalConnection.swift
QueueBasedMessageHandler.swift
RequestAndReply.swift
ResponseError+Init.swift
WorkDoneProgressManager.swift
)
set_target_properties(LanguageServerProtocolExtensions PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(LanguageServerProtocolExtensions PUBLIC
SourceKitD)
target_link_libraries(LanguageServerProtocolExtensions PRIVATE
LanguageServerProtocol
LanguageServerProtocolJSONRPC
SKLogging
SwiftExtensions
TSCBasic
$<$<NOT:$<PLATFORM_ID:Darwin>>:Foundation>)