mirror of https://github.com/novarobot/llama.cpp
Add a Package.swift for SwiftPM support
parent
a18c19259a
commit
927bc26e03
@ -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: ".",
|
||||
exclude: ["main.cpp", "tests", "quantize.cpp"],
|
||||
publicHeadersPath: "spm-headers",
|
||||
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])]
|
||||
),
|
||||
],
|
||||
cxxLanguageStandard: .cxx11
|
||||
)
|
||||
@ -0,0 +1 @@
|
||||
../llama.h
|
||||
Loading…
Reference in New Issue