Skip to content

Commit

Permalink
Merge branch 'main' into sync-llama-cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jan 25, 2025
2 parents 7365028 + 0fb8056 commit 7262e40
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions scripts/build-ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ function build_framework() {

# Copy headers and metallib
cp_headers $4

# TODO: May need to re-build metallib for tvOS
cp ../cpp/ggml-llama.metallib ../ios/rnllama.xcframework/$4/rnllama.framework/ggml-llama.metallib

rm -rf ./*
cd ..
}

rm -rf build-ios
Expand All @@ -49,8 +49,6 @@ mkdir -p build-ios
# Build iOS frameworks
build_framework "iOS" "arm64;x86_64" "iphonesimulator" "ios-arm64_x86_64-simulator" "build-ios"
build_framework "iOS" "arm64" "iphoneos" "ios-arm64" "build-ios"

cd ..
rm -rf build-ios

rm -rf build-tvos
Expand All @@ -59,6 +57,4 @@ mkdir -p build-tvos
# Build tvOS frameworks
build_framework "tvOS" "arm64;x86_64" "appletvsimulator" "tvos-arm64_x86_64-simulator" "build-tvos"
build_framework "tvOS" "arm64" "appletvos" "tvos-arm64" "build-tvos"

cd ..
rm -rf build-tvos

0 comments on commit 7262e40

Please sign in to comment.