Skip to content

Commit 8e66286

Browse files
committed
Fix the package that builds swiftASTGen.
1 parent c9f7060 commit 8e66286

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

lib/ASTGen/Package.resolved

Lines changed: 0 additions & 14 deletions
This file was deleted.

lib/ASTGen/Package.swift

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,29 @@ import PackageDescription
44

55
let package = Package(
66
name: "ASTGen",
7+
platforms: [
8+
.macOS(.v10_15)
9+
],
710
products: [
8-
.library(name: "ASTGen", targets: ["ASTGen"]),
11+
.library(name: "swiftASTGen", targets: ["swiftASTGen"]),
912
],
1013
dependencies: [
1114
.package(path: "../../../swift-syntax"),
1215
],
1316
targets: [
1417
.target(
15-
name: "ASTGen",
16-
dependencies: ["SwiftSyntax"]),
18+
name: "swiftASTGen",
19+
dependencies: [
20+
.product(name: "SwiftSyntax", package: "swift-syntax"),
21+
.product(name: "SwiftParser", package: "swift-syntax")
22+
],
23+
path: ".",
24+
exclude: ["CMakeLists.txt"],
25+
swiftSettings: [
26+
.unsafeFlags([
27+
"-I", "../../include/swift/",
28+
"-I", "../../include"
29+
])
30+
]),
1731
]
1832
)

0 commit comments

Comments
 (0)