From 58c438cf7dfbbef710b1905a453a38a8a9ced07d Mon Sep 17 00:00:00 2001 From: Andrew Duffy Date: Wed, 5 Apr 2023 11:44:24 +0100 Subject: Add Accelerate/BLAS when using Swift (#765) --- Package.swift | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Package.swift b/Package.swift index 79d13c8..2c2c147 100644 --- a/Package.swift +++ b/Package.swift @@ -13,7 +13,10 @@ let package = Package( path: ".", sources: ["ggml.c", "llama.cpp"], publicHeadersPath: "spm-headers", - cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])] + cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")], + linkerSettings: [ + .linkedFramework("Accelerate") + ] ), ], cxxLanguageStandard: .cxx11 -- cgit v1.2.3