Skip to content

Commit

Permalink
ggml : fix SPM package headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Jan 18, 2024
1 parent 979ee32 commit c287543
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let package = Package(
resources: [
.process("src/ggml-metal.metal")
],
publicHeadersPath: "include/ggml",
publicHeadersPath: "spm-headers",
cSettings: [
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),
.define("GGML_USE_ACCELERATE"),
Expand Down
1 change: 1 addition & 0 deletions spm-headers/ggml-alloc.h
1 change: 1 addition & 0 deletions spm-headers/ggml-backend.h
1 change: 1 addition & 0 deletions spm-headers/ggml.h
7 changes: 7 additions & 0 deletions spm-headers/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module ggml {
header "ggml.h"
header "ggml-alloc.h"
header "ggml-backend.h"

export *
}

0 comments on commit c287543

Please sign in to comment.