Revert "swift : update Package.swift to use ggml as dependency (#4691)"

This reverts commit ece9a45e8f.
This commit is contained in:
Georgi Gerganov 2024-02-12 19:23:41 +02:00
parent 43fe07c1a4
commit b8a91c5ac5
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -13,17 +13,21 @@ 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("release"))
],
targets: [ targets: [
.target( .target(
name: "llama", name: "llama",
dependencies: ["ggml"],
path: ".", path: ".",
exclude: ["ggml-metal.metal"], exclude: ["ggml-metal.metal"],
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: [