Skip to content

Commit 955a3da

Browse files
committed
Make it build in Xcode
1 parent 9dcda76 commit 955a3da

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

Package.swift

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ let additionalSettings: [CSetting] = []
2727
#endif
2828

2929
let package = Package(
30-
name: "whispercpp",
31-
defaultLocalization: "en",
30+
name: "whisper",
3231
platforms: platforms,
3332
products: [
34-
.library(name: "whispercpp", targets: ["whispercpp"]),
33+
.library(name: "whisper", targets: ["whisper"]),
3534
],
3635
targets: [
3736
.target(
38-
name: "whispercpp",
37+
name: "whisper",
3938
path: ".",
4039
exclude: exclude + [
4140
"bindings",
@@ -55,14 +54,13 @@ let package = Package(
5554
"ggml.c",
5655
"whisper.cpp",
5756
"ggml-alloc.c",
58-
// "ggml-backend.c",
59-
// "k_quants.c",
57+
"ggml-backend.c",
58+
"ggml-quants.c"
6059
] + additionalSources,
6160
resources: resources,
6261
publicHeadersPath: "spm-headers",
6362
cSettings: [
6463
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),
65-
// .define("GGML_USE_K_QUANTS"),
6664
.define("GGML_USE_ACCELERATE")
6765
// NOTE: NEW_LAPACK will required iOS version 16.4+
6866
// We should consider add this in the future when we drop support for iOS 14

spm-headers/ggml.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../ggml.h

spm-headers/whisper.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

spm-headers/whisper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../whisper.h

0 commit comments

Comments
 (0)