diff options
author | Jed Fox <git@jedfox.com> | 2023-03-28 11:39:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-28 19:39:01 +0300 |
commit | 20e1e84884376b3fb44ffbfd48d478b2934b0b5e (patch) | |
tree | 817c4973a1e38682a4aa6bf679cb928865cd5169 /Package.swift | |
parent | c1f885067c61191a07a1aedf684168dda62f3f71 (diff) |
deploy : add a Package.swift for SwiftPM support (#393)
* Add a Package.swift for SwiftPM support
* Swap from exclusions to allowlist
Diffstat (limited to 'Package.swift')
-rw-r--r-- | Package.swift | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..79d13c8 --- /dev/null +++ b/Package.swift @@ -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 +) |