Skip to content

Commit 489f034

Browse files
committed
ci: support darwin-arm64 NDK host in mieru.sh
Add a darwin-arm64 fallback for the NDK LLVM toolchain so local Mieru builds work natively on Apple Silicon Macs (newer NDKs ship darwin-arm64).
1 parent 8153cd3 commit 489f034

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

buildScript/lib/mieru.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ fi
2020
MIERU_VERSION="${MIERU_VERSION:-v3.34.0}"
2121

2222
DEPS="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin"
23-
# macOS NDK host dir is darwin-x86_64; fall back if linux path is absent.
23+
# macOS NDK host dirs are darwin-x86_64 / darwin-arm64; fall back if linux is absent.
2424
if [ ! -d "$DEPS" ]; then
2525
DEPS="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-x86_64/bin"
2626
fi
27+
if [ ! -d "$DEPS" ]; then
28+
DEPS="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/darwin-arm64/bin"
29+
fi
2730
if [ ! -d "$DEPS" ]; then
2831
echo "Error: NDK LLVM toolchain not found under $ANDROID_NDK_HOME (unsupported host or NDK layout)." >&2
2932
exit 1

0 commit comments

Comments
 (0)