diff --git a/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Build.swift b/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Build.swift index 171a6274dc9..ae884a7c02d 100644 --- a/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Build.swift +++ b/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/commands/Build.swift @@ -26,6 +26,7 @@ struct Build: ParsableCommand, BuildCommand { func run() throws { try buildTarget(packageDir: Paths.packageDir, targetName: "SwiftSyntax-all") try buildTarget(packageDir: Paths.examplesDir, targetName: "Examples-all") + try buildTarget(packageDir: Paths.swiftParserCliDir, targetName: "swift-parser-cli") try buildEditorExtension() } diff --git a/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/Paths.swift b/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/Paths.swift index 48a42e5e42f..693314275d4 100644 --- a/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/Paths.swift +++ b/SwiftSyntaxDevUtils/Sources/swift-syntax-dev-utils/common/Paths.swift @@ -32,6 +32,11 @@ enum Paths { .appendingPathComponent("Examples") } + static var swiftParserCliDir: URL { + packageDir + .appendingPathComponent("SwiftParserCLI") + } + static var codeGenerationDir: URL { packageDir .appendingPathComponent("CodeGeneration")