Skip to content

Commit

Permalink
swift : update Package.swift to use ggml as package dependency (#1701)
Browse files Browse the repository at this point in the history
* updates Package.swift to use ggml as dependency

* cleans up the Package.swift file by removing redundant source files

* updates ggml url src to ggerganov
  • Loading branch information
1-ashraful-islam committed Jan 3, 2024
1 parent a3d0aa7 commit 993acb5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Package.swift
Expand Up @@ -13,9 +13,13 @@ let package = Package(
products: [
.library(name: "whisper", targets: ["whisper"]),
],
dependencies: [
.package(url: "https://github.com/ggerganov/ggml.git", .branch("master"))
],
targets: [
.target(
name: "whisper",
dependencies: ["ggml"],
path: ".",
exclude: [
"bindings",
Expand All @@ -32,14 +36,8 @@ let package = Package(
"Makefile"
],
sources: [
"ggml.c",
"whisper.cpp",
"ggml-alloc.c",
"ggml-backend.c",
"ggml-quants.c",
"ggml-metal.m"
],
resources: [.process("ggml-metal.metal")],
publicHeadersPath: "spm-headers",
cSettings: [
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),
Expand Down

0 comments on commit 993acb5

Please sign in to comment.