mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 05:48:47 +01:00
swift : update Package.swift to use ggml as dependency (#4691)
* updates the package.swift to use ggml as dependency * changes the ggml package url src to ggerganov
This commit is contained in:
parent
7bed7eba35
commit
ece9a45e8f
@ -13,21 +13,17 @@ let package = Package(
|
|||||||
products: [
|
products: [
|
||||||
.library(name: "llama", targets: ["llama"]),
|
.library(name: "llama", targets: ["llama"]),
|
||||||
],
|
],
|
||||||
|
dependencies: [
|
||||||
|
.package(url: "https://github.com/ggerganov/ggml.git", .branch("master"))
|
||||||
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "llama",
|
name: "llama",
|
||||||
|
dependencies: ["ggml"],
|
||||||
path: ".",
|
path: ".",
|
||||||
exclude: [],
|
exclude: [],
|
||||||
sources: [
|
sources: [
|
||||||
"ggml.c",
|
|
||||||
"llama.cpp",
|
"llama.cpp",
|
||||||
"ggml-alloc.c",
|
|
||||||
"ggml-backend.c",
|
|
||||||
"ggml-quants.c",
|
|
||||||
"ggml-metal.m",
|
|
||||||
],
|
|
||||||
resources: [
|
|
||||||
.process("ggml-metal.metal")
|
|
||||||
],
|
],
|
||||||
publicHeadersPath: "spm-headers",
|
publicHeadersPath: "spm-headers",
|
||||||
cSettings: [
|
cSettings: [
|
||||||
|
Loading…
Reference in New Issue
Block a user