File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,11 @@ export PATH=$PATH:$REPO_ROOT/tools/bin
1111# needs multiple xcframeworks for x86_64-based and ARM-based Mac development computer.
1212
1313# maccatalyst-arm64 macosx macosx-arm64
14+ if [[ $( arch) == ' arm64' ]]; then
15+ AVAILABLE_PLATFORMS=(iphoneos iphonesimulator maccatalyst-arm64)
16+ else
1417AVAILABLE_PLATFORMS=(iphoneos iphonesimulator maccatalyst)
18+ fi
1519
1620# Download build tools
1721test -d tools || wget -q https://github.com/light-tech/LLVM-On-iOS/releases/download/llvm12.0.0/tools.tar.xz
@@ -49,7 +53,7 @@ function setup_variables() {
4953 -DCMAKE_OSX_SYSROOT=$SYSROOT );;
5054
5155 " iphonesimulator" )
52- ARCH=x86_64
56+ ARCH=$( arch )
5357 SYSROOT=` xcodebuild -version -sdk iphonesimulator Path`
5458 CMAKE_ARGS+=(-DCMAKE_OSX_ARCHITECTURES=$ARCH -DCMAKE_OSX_SYSROOT=$SYSROOT );;
5559
@@ -167,7 +171,7 @@ function build_libgit2() {
167171
168172 rm -rf libgit2-1.3.0
169173 test -f v1.3.0.zip || wget -q https://github.com/libgit2/libgit2/archive/refs/tags/v1.3.0.zip
170- unzip v1.3.0.zip > /dev/null
174+ ditto -V -x -k --sequesterRsrc --rsrc v1.3.0.zip ./
171175 cd libgit2-1.3.0
172176
173177 rm -rf build && mkdir build && cd build
You can’t perform that action at this time.
0 commit comments