We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1f8850 commit 20e1e84Copy full SHA for 20e1e84
.gitignore
@@ -5,6 +5,7 @@
5
.vscode/
6
.DS_Store
7
8
+.build/
9
build/
10
build-em/
11
build-debug/
@@ -27,3 +28,7 @@ compile_commands.json
27
28
29
.envrc
30
.direnv/
31
+
32
+.venv
33
+__pycache__
34
+.swiftpm
Package.swift
@@ -0,0 +1,20 @@
1
+// swift-tools-version:5.3
2
3
+import PackageDescription
4
+let package = Package(
+ name: "llama",
+ products: [
+ .library(name: "llama", targets: ["llama"]),
+ ],
+ targets: [
+ .target(
12
13
+ path: ".",
14
+ sources: ["ggml.c", "llama.cpp"],
15
+ publicHeadersPath: "spm-headers",
16
+ cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])]
17
+ ),
18
19
+ cxxLanguageStandard: .cxx11
20
+)
spm-headers/llama.h
@@ -0,0 +1 @@
+../llama.h
0 commit comments