mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Building Foundation seems to be optional in the Linux build script, which makes it tricky to link against outside of Darwin platforms. This removes the dependency on Foundation and calls libc for I/O instead.
25 lines
668 B
Swift
25 lines
668 B
Swift
// swift-tools-version: 6.2
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swift-function-caller-generator",
|
|
platforms: [.macOS(.v13)],
|
|
products: [
|
|
.executable(name: "swift-function-caller-generator", targets: ["swift-function-caller-generator"]),
|
|
],
|
|
dependencies: [
|
|
.package(path: "../../../swift-syntax")
|
|
],
|
|
targets: [
|
|
.executableTarget(
|
|
name: "swift-function-caller-generator",
|
|
dependencies: [
|
|
.product(name: "SwiftSyntax", package: "swift-syntax"),
|
|
.product(name: "SwiftParser", package: "swift-syntax"),
|
|
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
|
|
]
|
|
),
|
|
],
|
|
)
|