Skip to content

Commit

Permalink
Update build_macos.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Sep 26, 2023
1 parent d24d4b6 commit d110962
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/build_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,20 @@ cd ${WORKDIR}
wget -q https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
tar -xf libffi-3.4.2.tar.gz
mkdir deps/libffi
cp -r libffi-3.4.2 libffi-3.4.2-arm64
cd libffi-3.4.2
CC=clang CFLAGS="-arch x86_64 -arch arm64" ./configure --prefix ${WORKDIR}/deps/libffi
./configure --prefix ${WORKDIR}/deps/libffi
make -j${NPROC}
make install
cd ${WORKDIR}
mkdir libffi-arm64-out
cd libffi-3.4.2-arm64
./configure --prefix ${WORKDIR}/libffi-arm64-out --build=aarch64-apple-darwin
make -j${NPROC}
make install

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

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

0 comments on commit d110962

Please sign in to comment.