Skip to content

Commit 6faa5ae

Browse files
authored
fix: macOS 14 prebuilt binaries (#559)
1 parent 498711c commit 6faa5ae

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ jobs:
199199
brew install cmake ninja
200200
alias make=cmake
201201
cmake --version
202+
uname -mprs
202203
203204
- name: Setup & Build
204205
id: build

src/bindings/utils/compileLLamaCpp.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,9 @@ export async function compileLlamaCpp(buildOptions: BuildOptions, compileOptions
154154
cmakeCustomOptions.set("GGML_OPENMP", "OFF");
155155

156156
if (ciMode) {
157+
if (!cmakeCustomOptions.has("CMAKE_OSX_DEPLOYMENT_TARGET"))
158+
cmakeCustomOptions.set("CMAKE_OSX_DEPLOYMENT_TARGET", "14");
159+
157160
if (!cmakeCustomOptions.has("GGML_OPENMP"))
158161
cmakeCustomOptions.set("GGML_OPENMP", "OFF");
159162

0 commit comments

Comments
 (0)