Skip to content

Commit

Permalink
lipo libffi.a
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Sep 27, 2023
1 parent ed82186 commit da79bd0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ CC="/usr/bin/cc" CFLAGS="-target arm64-apple-macos11" ./configure --prefix ${WOR
make -j${NPROC}
make install

cd ${WORKDIR}
lipo --create --output libffi.a ${WORKDIR}/deps/libffi/lib/libffi.a ${WORKDIR}/libffi-arm64-out/lib/libffi.a
mv libffi.a ${WORKDIR}/deps/libffi/lib/libffi.a

file ${WORKDIR}/deps/libffi/lib/libffi.a
file ${WORKDIR}/libffi-arm64-out/lib/libffi.a

echo "::endgroup::"
#########
Expand Down

0 comments on commit da79bd0

Please sign in to comment.