mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
We used C atomics but these were allocated as Swift variables. Even thought they were atomic, concurrent accesses to them could violate Swift’s exclusivity laws, raising thread sanitizer errors. Allocate the C atomics using malloc to fix this problem. rdar://129170128
14 lines
321 B
CMake
14 lines
321 B
CMake
add_library(InProcessClient STATIC
|
|
InProcessSourceKitLSPClient.swift
|
|
LocalConnection.swift)
|
|
|
|
set_target_properties(InProcessClient PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
|
|
target_link_libraries(InProcessClient PUBLIC
|
|
LanguageServerProtocol
|
|
LSPLogging
|
|
SKCore
|
|
SourceKitLSP
|
|
)
|