Skip to content

Commit ece9a45

Browse files
swift : update Package.swift to use ggml as dependency (ggml-org#4691)
* updates the package.swift to use ggml as dependency * changes the ggml package url src to ggerganov
1 parent 7bed7eb commit ece9a45

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Package.swift

+4-8
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,17 @@ let package = Package(
1313
products: [
1414
.library(name: "llama", targets: ["llama"]),
1515
],
16+
dependencies: [
17+
.package(url: "https://github.com/ggerganov/ggml.git", .branch("master"))
18+
],
1619
targets: [
1720
.target(
1821
name: "llama",
22+
dependencies: ["ggml"],
1923
path: ".",
2024
exclude: [],
2125
sources: [
22-
"ggml.c",
2326
"llama.cpp",
24-
"ggml-alloc.c",
25-
"ggml-backend.c",
26-
"ggml-quants.c",
27-
"ggml-metal.m",
28-
],
29-
resources: [
30-
.process("ggml-metal.metal")
3127
],
3228
publicHeadersPath: "spm-headers",
3329
cSettings: [

0 commit comments

Comments
 (0)