Skip to content

Commit 69b34a0

Browse files
SchaltfehlerVogel Frederik
and
Vogel Frederik
authored
swift : Package compile breaks due to ggml-metal.metal (ggml-org#1831)
* Ignore metal file in spm * Add ggml.h to spm public Headers --------- Co-authored-by: Vogel Frederik <[email protected]>
1 parent cf267d1 commit 69b34a0

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Package.swift

+1
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

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

0 commit comments

Comments
 (0)