Skip to content

Commit c287543

Browse files
committed
ggml : fix SPM package headers
1 parent 979ee32 commit c287543

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ let package = Package(
2828
resources: [
2929
.process("src/ggml-metal.metal")
3030
],
31-
publicHeadersPath: "include/ggml",
31+
publicHeadersPath: "spm-headers",
3232
cSettings: [
3333
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),
3434
.define("GGML_USE_ACCELERATE"),

spm-headers/ggml-alloc.h

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

spm-headers/ggml-backend.h

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

spm-headers/ggml.h

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

spm-headers/module.modulemap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module ggml {
2+
header "ggml.h"
3+
header "ggml-alloc.h"
4+
header "ggml-backend.h"
5+
6+
export *
7+
}

0 commit comments

Comments
 (0)