Skip to content

Commit

Permalink
swift : Package compile breaks due to ggml-metal.metal (ggerganov#1831)
Browse files Browse the repository at this point in the history
* Ignore metal file in spm

* Add ggml.h to spm public Headers

---------

Co-authored-by: Vogel Frederik <[email protected]>
  • Loading branch information
Schaltfehler and Vogel Frederik authored Jun 15, 2023
1 parent cf267d1 commit 69b34a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ let package = Package(
.target(
name: "llama",
path: ".",
exclude: ["ggml-metal.metal"],
sources: ["ggml.c", "llama.cpp"],
publicHeadersPath: "spm-headers",
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],
Expand Down
1 change: 1 addition & 0 deletions spm-headers/ggml.h

0 comments on commit 69b34a0

Please sign in to comment.