Skip to content

Commit b8a91c5

Browse files
committed
Revert "swift : update Package.swift to use ggml as dependency (#4691)"
This reverts commit ece9a45.
1 parent 43fe07c commit b8a91c5

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Package.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@ let package = Package(
1313
products: [
1414
.library(name: "llama", targets: ["llama"]),
1515
],
16-
dependencies: [
17-
.package(url: "https://github.com/ggerganov/ggml.git", .branch("release"))
18-
],
1916
targets: [
2017
.target(
2118
name: "llama",
22-
dependencies: ["ggml"],
2319
path: ".",
2420
exclude: ["ggml-metal.metal"],
2521
sources: [
22+
"ggml.c",
2623
"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")
2731
],
2832
publicHeadersPath: "spm-headers",
2933
cSettings: [

0 commit comments

Comments
 (0)