Skip to content

Commit a95cbcf

Browse files
authored
[easy] Allow user to set ANDROID_NDK in build_llama_android script (#12662)
The way it was written required hand-hacking to build locally. Now it respects ANDROID_NDK from the environment.
1 parent b01c72a commit a95cbcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/scripts/build_llama_android.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ install_executorch_and_backend_lib() {
1919
echo "Installing executorch and xnnpack backend"
2020
clean_executorch_install_folders
2121
mkdir cmake-android-out
22-
ANDROID_NDK=/opt/ndk
22+
ANDROID_NDK=${ANDROID_NDK:-/opt/ndk}
2323
BUCK2=buck2
2424
ANDROID_ABI=arm64-v8a
2525
cmake --preset llm \

0 commit comments

Comments
 (0)