Skip to content

Commit 69b34a0

Browse files
SchaltfehlerVogel Frederik
andauthored
swift : Package compile breaks due to ggml-metal.metal (#1831)
* Ignore metal file in spm * Add ggml.h to spm public Headers --------- Co-authored-by: Vogel Frederik <vogel.frederik@linecorp.com>
1 parent cf267d1 commit 69b34a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ let package = Package(
1111
.target(
1212
name: "llama",
1313
path: ".",
14+
exclude: ["ggml-metal.metal"],
1415
sources: ["ggml.c", "llama.cpp"],
1516
publicHeadersPath: "spm-headers",
1617
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],

spm-headers/ggml.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ggml.h

0 commit comments

Comments
 (0)