We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3acf42a commit 5415e16Copy full SHA for 5415e16
library/src/main/jni/buildJNI
@@ -88,7 +88,12 @@ if [[ -z "$THREADS" ]] || [[ "$THREADS" -eq "0" ]]; then
88
fi
89
90
if [[ -n "$NDK" ]] && [[ -f "$NDK/ndk-build" ]]; then
91
- "$NDK/ndk-build" ${BUILD_ARG} -j${THREADS}
+ if ! "$NDK/ndk-build" ${BUILD_ARG} -j${THREADS}; then
92
+ # check if using mac m1.
93
+ if [[ $(uname -s) == "Darwin" ]] && uname -a | grep -i arm64; then
94
+ arch -arch x86_64 "$NDK/ndk-build" ${BUILD_ARG} -j${THREADS}
95
+ fi
96
97
elif [[ -n $(command -v cmd && cmd /C set | grep -i 'NDK') ]]; then
98
cmd /C "set CGE_USE_VIDEO_MODULE=1 && %NDK%/ndk-build.cmd" ${BUILD_ARG} -j${THREADS}
99
else
0 commit comments