mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-14 06:49:54 +00:00
swift : fix build on xcode 15 (#3387)
This commit is contained in:
parent
bc39553c90
commit
c71bf2c45c
@ -10,7 +10,7 @@ let platforms: [SupportedPlatform]? = [
|
|||||||
.tvOS(.v14)
|
.tvOS(.v14)
|
||||||
]
|
]
|
||||||
let exclude: [String] = []
|
let exclude: [String] = []
|
||||||
let additionalSources: [String] = ["ggml-metal.m"]
|
let additionalSources: [String] = ["ggml-metal.m", "ggml-metal.metal"]
|
||||||
let additionalSettings: [CSetting] = [
|
let additionalSettings: [CSetting] = [
|
||||||
.unsafeFlags(["-fno-objc-arc"]),
|
.unsafeFlags(["-fno-objc-arc"]),
|
||||||
.define("GGML_SWIFT"),
|
.define("GGML_SWIFT"),
|
||||||
@ -44,8 +44,8 @@ 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")
|
.define("ACCELERATE_NEW_LAPACK"),
|
||||||
.define("ACCELERATE_LAPACK_ILP64")
|
.define("ACCELERATE_LAPACK_ILP64")
|
||||||
] + additionalSettings,
|
] + additionalSettings,
|
||||||
linkerSettings: [
|
linkerSettings: [
|
||||||
|
Loading…
Reference in New Issue
Block a user