Files
swift-mirror/tools/swift-plugin-server/Package.swift
Saleem Abdulrasool d97178d8b3 swift-plugin-server: default to C++17
This is required to build on Windows and for C++ interop.
2023-09-02 11:51:15 -07:00

40 lines
1.1 KiB
Swift

// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "swift-plugin-server",
platforms: [
.macOS(.v10_15)
],
dependencies: [
.package(path: "../../../swift-syntax"),
.package(path: "../../lib/ASTGen"),
],
targets: [
.target(
name: "CSwiftPluginServer",
cxxSettings: [
.unsafeFlags([
"-I", "../../include",
"-I", "../../../llvm-project/llvm/include",
])
]
),
.executableTarget(
name: "swift-plugin-server",
dependencies: [
.product(name: "swiftLLVMJSON", package: "ASTGen"),
.product(name: "SwiftCompilerPluginMessageHandling", package: "swift-syntax"),
.product(name: "SwiftDiagnostics", package: "swift-syntax"),
.product(name: "SwiftSyntax", package: "swift-syntax"),
.product(name: "SwiftOperators", package: "swift-syntax"),
.product(name: "SwiftParser", package: "swift-syntax"),
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
"CSwiftPluginServer"
]
),
],
cxxLanguageStandard: .cxx17
)