Explorar o código

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>
Frederik Vogel %!s(int64=2) %!d(string=hai) anos
pai
achega
69b34a0e80
Modificáronse 2 ficheiros con 2 adicións e 0 borrados
  1. 1 0
      Package.swift
  2. 1 0
      spm-headers/ggml.h

+ 1 - 0
Package.swift

@@ -11,6 +11,7 @@ let package = Package(
         .target(
         .target(
             name: "llama",
             name: "llama",
             path: ".",
             path: ".",
+            exclude: ["ggml-metal.metal"],
             sources: ["ggml.c", "llama.cpp"],
             sources: ["ggml.c", "llama.cpp"],
             publicHeadersPath: "spm-headers",
             publicHeadersPath: "spm-headers",
             cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],
             cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],

+ 1 - 0
spm-headers/ggml.h

@@ -0,0 +1 @@
+../ggml.h