deploy : add a Package.swift for SwiftPM support (#393)
* Add a Package.swift for SwiftPM support * Swap from exclusions to allowlistpull/509/head^2 master-20e1e84
parent
c1f885067c
commit
20e1e84884
@ -0,0 +1,20 @@
|
||||
// swift-tools-version:5.3
|
||||
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "llama",
|
||||
products: [
|
||||
.library(name: "llama", targets: ["llama"]),
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "llama",
|
||||
path: ".",
|
||||
sources: ["ggml.c", "llama.cpp"],
|
||||
publicHeadersPath: "spm-headers",
|
||||
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])]
|
||||
),
|
||||
],
|
||||
cxxLanguageStandard: .cxx11
|
||||
)
|
@ -0,0 +1 @@
|
||||
../llama.h
|
Loading…
Reference in New Issue