Skip to content

Commit

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

This reverts commit 993acb5.

* spm : add ggml.h
  • Loading branch information
ggerganov committed Feb 12, 2024
1 parent e3c5e2c commit 3ffc83d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ let package = Package(
products: [
.library(name: "whisper", targets: ["whisper"]),
],
dependencies: [
.package(url: "https://github.com/ggerganov/ggml.git", .branch("release"))
],
targets: [
.target(
name: "whisper",
dependencies: ["ggml"],
path: ".",
exclude: [
"bindings",
Expand All @@ -36,8 +32,14 @@ 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
1 change: 1 addition & 0 deletions spm-headers/ggml.h

0 comments on commit 3ffc83d

Please sign in to comment.