diff --git a/scripts/build_macos.sh b/scripts/build_macos.sh index 0a5d24e2..d3b683df 100755 --- a/scripts/build_macos.sh +++ b/scripts/build_macos.sh @@ -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::" #########