From 0c8c61c3f9b5bad12f48269a3923ee88a3053e13 Mon Sep 17 00:00:00 2001 From: Florian Pircher Date: Mon, 17 Nov 2025 17:25:43 +0100 Subject: [PATCH] fix: no dynamic scanner file check This makes it easier to build the project as a Swift package. --- Package.swift | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Package.swift b/Package.swift index d3032ed8..7c4e98a6 100644 --- a/Package.swift +++ b/Package.swift @@ -1,13 +1,6 @@ // swift-tools-version:5.3 - -import Foundation import PackageDescription -var sources = ["src/parser.c"] -if FileManager.default.fileExists(atPath: "src/scanner.c") { - sources.append("src/scanner.c") -} - let package = Package( name: "TreeSitterPython", products: [ @@ -21,7 +14,7 @@ let package = Package( name: "TreeSitterPython", dependencies: [], path: ".", - sources: sources, + sources: ["src/parser.c", "src/scanner.c"], resources: [ .copy("queries") ],