swift : disable ACCELERATE_NEW_LAPACK (#3481)

This commit is contained in:
Jhen-Jie Hong 2023-10-05 09:00:07 -05:00 committed by GitHub
parent 0745384449
commit 8f3a642ec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,9 +44,12 @@ let package = Package(
cSettings: [ cSettings: [
.unsafeFlags(["-Wno-shorten-64-to-32"]), .unsafeFlags(["-Wno-shorten-64-to-32"]),
.define("GGML_USE_K_QUANTS"), .define("GGML_USE_K_QUANTS"),
.define("GGML_USE_ACCELERATE"), .define("GGML_USE_ACCELERATE")
.define("ACCELERATE_NEW_LAPACK"), // NOTE: NEW_LAPACK will required iOS version 16.4+
.define("ACCELERATE_LAPACK_ILP64") // We should consider add this in the future when we drop support for iOS 14
// (ref: ref: https://developer.apple.com/documentation/accelerate/1513264-cblas_sgemm?language=objc)
// .define("ACCELERATE_NEW_LAPACK"),
// .define("ACCELERATE_LAPACK_ILP64")
] + additionalSettings, ] + additionalSettings,
linkerSettings: [ linkerSettings: [
.linkedFramework("Accelerate") .linkedFramework("Accelerate")