summaryrefslogtreecommitdiff
path: root/Package.swift
diff options
context:
space:
mode:
Diffstat (limited to 'Package.swift')
-rw-r--r--Package.swift12
1 files changed, 4 insertions, 8 deletions
diff --git a/Package.swift b/Package.swift
index 18d610d6..e33a4ff4 100644
--- a/Package.swift
+++ b/Package.swift
@@ -13,21 +13,17 @@ let package = Package(
products: [
.library(name: "llama", targets: ["llama"]),
],
+ dependencies: [
+ .package(url: "https://github.com/ggerganov/ggml.git", .branch("master"))
+ ],
targets: [
.target(
name: "llama",
+ dependencies: ["ggml"],
path: ".",
exclude: [],
sources: [
- "ggml.c",
"llama.cpp",
- "ggml-alloc.c",
- "ggml-backend.c",
- "ggml-quants.c",
- "ggml-metal.m",
- ],
- resources: [
- .process("ggml-metal.metal")
],
publicHeadersPath: "spm-headers",
cSettings: [