Skip to content

Commit af66b77

Browse files
landoyjxclaude
andcommitted
🔧 fix(build): set macOS deployment target to 10.15 for llama-cpp-sys-2
llama-cpp-sys-2 uses std::filesystem::path which requires macOS 10.15+. The default CMake target was 10.13, causing C++ compilation failures. Export both MACOSX_DEPLOYMENT_TARGET and CMAKE_OSX_DEPLOYMENT_TARGET before cargo tauri build to ensure the C++ dependency compiles correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent d61733b commit af66b77

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎scripts/build-desktop.sh‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ set -euo pipefail
66

77
cd "$(dirname "$0")/../desktop"
88

9+
# llama-cpp-sys-2 uses std::filesystem which requires macOS 10.15+
10+
export MACOSX_DEPLOYMENT_TARGET=10.15
11+
export CMAKE_OSX_DEPLOYMENT_TARGET=10.15
12+
913
echo "Building Syscity Desktop..."
1014
cargo tauri build "$@"
1115

0 commit comments

Comments
 (0)