diff options
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 00000000..79d13c82 --- /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 +) |