Skip to content

Commit b499aea

Browse files
1-ashraful-islamhodlen
authored andcommitted
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 e076dc0 commit b499aea

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Package.swift

Lines changed: 4 additions & 8 deletions
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)