Files
sourcekit-lsp/Sources/BuildSystemIntegration/CMakeLists.txt
Ben Barham 786f8077d2 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.

(cherry picked from commit ab12429651)
2025-02-07 16:31:07 -08:00

45 lines
1.2 KiB
CMake

add_library(BuildSystemIntegration STATIC
BuildSettingsLogger.swift
BuildSystemManager.swift
BuildSystemManagerDelegate.swift
BuildSystemMessageDependencyTracker.swift
BuildSystemTestHooks.swift
BuildTargetIdentifierExtensions.swift
BuiltInBuildSystem.swift
BuiltInBuildSystemAdapter.swift
CompilationDatabase.swift
CompilationDatabaseBuildSystem.swift
CompilerCommandLineOption.swift
DetermineBuildSystem.swift
ExternalBuildSystemAdapter.swift
FallbackBuildSettings.swift
FileBuildSettings.swift
LegacyBuildServerBuildSystem.swift
MainFilesProvider.swift
PathPrefixMapping.swift
PrefixMessageWithTaskEmoji.swift
SplitShellCommand.swift
SwiftPMBuildSystem.swift
TestBuildSystem.swift)
set_target_properties(BuildSystemIntegration PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
target_link_libraries(BuildSystemIntegration PUBLIC
BuildServerProtocol
LanguageServerProtocol
LanguageServerProtocolJSONRPC
SKLogging
SKOptions
LanguageServerProtocolExtensions
SourceKitD
SwiftExtensions
ToolchainRegistry
PackageModel
TSCBasic
Build
SourceKitLSPAPI)
target_link_libraries(BuildSystemIntegration PRIVATE
SKUtilities
TSCExtensions)