Skip to content

Commit 781139a

Browse files
committed
[easy] Allow user to set ANDROID_NDK in build_llama_android script
The way it was written required hand-hacking to build locally. Now it respects ANDROID_NDK from the environment. ghstack-source-id: 352c19c ghstack-comment-id: 3091478603 Pull-Request: #12662
1 parent b790eb6 commit 781139a

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)