* Add a Package.swift for SwiftPM support
* Swap from exclusions to allowlist
.vscode/
.DS_Store
+.build/
build/
build-em/
build-debug/
.envrc
.direnv/
+
+.venv
+__pycache__
+.swiftpm
--- /dev/null
+// swift-tools-version:5.3
+
+import PackageDescription
+
+let package = Package(
+ name: "llama",
+ products: [
+ .library(name: "llama", targets: ["llama"]),
+ ],
+ targets: [
+ .target(
+ name: "llama",
+ path: ".",
+ sources: ["ggml.c", "llama.cpp"],
+ publicHeadersPath: "spm-headers",
+ cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])]
+ ),
+ ],
+ cxxLanguageStandard: .cxx11
+)
--- /dev/null
+../llama.h
\ No newline at end of file