From 5d0240e8ad90af18bdf426b3b00f023c03505f30 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Wed, 16 Aug 2023 12:36:22 +0800 Subject: [PATCH] fix(cli): set RANLIB while building android targets --- cli/src/api/build.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/src/api/build.ts b/cli/src/api/build.ts index b7bedc65..6842b2d0 100644 --- a/cli/src/api/build.ts +++ b/cli/src/api/build.ts @@ -376,6 +376,7 @@ class Builder { CC: `${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/${hostPlatform}-x86_64/bin/${targetArch}-linux-${targetPlatform}-clang`, CXX: `${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/${hostPlatform}-x86_64/bin/${targetArch}-linux-${targetPlatform}-clang++`, AR: `${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/${hostPlatform}-x86_64/bin/llvm-ar`, + RANLIB: `${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/${hostPlatform}-x86_64/bin/llvm-ranlib`, ANDROID_NDK: ANDROID_NDK_LATEST_HOME, PATH: `${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/${hostPlatform}-x86_64/bin:${process.env.PATH}`, })