Skip to content

Commit

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

This reverts commit 993acb5.
  • Loading branch information
ggerganov committed Feb 12, 2024
1 parent b742f13 commit 65a213d
Showing 1 changed file with 6 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

0 comments on commit 65a213d

Please sign in to comment.