Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit df334a1

Browse files
authoredFeb 12, 2024
swift : package no longer use ggml dependency (ggml-org#5465)
* Revert "swift : update Package.swift to use ggml as dependency (ggml-org#4691)" This reverts commit ece9a45. * spm : add ggml headers
1 parent dbd8828 commit df334a1

File tree

4 files changed

+22
-5
lines changed

4 files changed

+22
-5
lines changed
 

‎Package.swift

+19-5
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,31 @@ 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: ".",
24-
exclude: ["ggml-metal.metal"],
20+
exclude: [
21+
"cmake",
22+
"examples",
23+
"scripts",
24+
"models",
25+
"tests",
26+
"CMakeLists.txt",
27+
"ggml-cuda.cu",
28+
"ggml-cuda.h",
29+
"Makefile"
30+
],
2531
sources: [
32+
"ggml.c",
2633
"llama.cpp",
34+
"ggml-alloc.c",
35+
"ggml-backend.c",
36+
"ggml-quants.c",
37+
"ggml-metal.m",
38+
],
39+
resources: [
40+
.process("ggml-metal.metal")
2741
],
2842
publicHeadersPath: "spm-headers",
2943
cSettings: [

‎spm-headers/ggml-alloc.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ggml-alloc.h

‎spm-headers/ggml-backend.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ggml-backend.h

‎spm-headers/ggml.h

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ggml.h

0 commit comments

Comments
 (0)
Please sign in to comment.