]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
swift : Package compile breaks due to ggml-metal.metal (#1831)
authorFrederik Vogel <redacted>
Thu, 15 Jun 2023 17:47:04 +0000 (02:47 +0900)
committerGitHub <redacted>
Thu, 15 Jun 2023 17:47:04 +0000 (20:47 +0300)
* Ignore metal file in spm

* Add ggml.h to spm public Headers

---------

Co-authored-by: Vogel Frederik <redacted>
Package.swift
spm-headers/ggml.h [new symlink]

index 2c2c147ba35927387a38a69d0d5eaae0c93174b1..73d027c70215495a5b5233b95110a2c3f622d46c 100644 (file)
@@ -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")],
diff --git a/spm-headers/ggml.h b/spm-headers/ggml.h
new file mode 120000 (symlink)
index 0000000..3921529
--- /dev/null
@@ -0,0 +1 @@
+../ggml.h
\ No newline at end of file