aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Duffy <a10y@users.noreply.github.com>2023-04-05 11:44:24 +0100
committerGitHub <noreply@github.com>2023-04-05 06:44:24 -0400
commit58c438cf7dfbbef710b1905a453a38a8a9ced07d (patch)
treee46d84b82042d2b63f04572b0f2170a48937e6fd
parent53dbba769537e894ead5c6913ab2fd3a4658b738 (diff)
Add Accelerate/BLAS when using Swift (#765)
-rw-r--r--Package.swift5
1 files changed, 4 insertions, 1 deletions
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