Skip to content

Commit 5f82cb2

Browse files
authored
Define unused variable in build_android_llm_demo.sh
1 parent 0a8e007 commit 5f82cb2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/build_android_llm_demo.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ build_android_native_library() {
2626
EXECUTORCH_BUILD_QNN=OFF
2727
fi
2828

29+
NEURON_BUFFER_ALLOCATOR_LIB="${NEURON_BUFFER_ALLOCATOR_LIB:-}"
30+
NEURON_USDK_ADAPTER_LIB="${NEURON_USDK_ADAPTER_LIB:-}"
31+
if [ -n "$NEURON_BUFFER_ALLOCATOR_LIB" ]; then
32+
EXECUTORCH_BUILD_NEURON=ON
33+
else
34+
EXECUTORCH_BUILD_NEURON=OFF
35+
fi
36+
2937
cmake . -DCMAKE_INSTALL_PREFIX="${CMAKE_OUT}" \
3038
-DCMAKE_TOOLCHAIN_FILE="${ANDROID_NDK}/build/cmake/android.toolchain.cmake" \
3139
-DANDROID_ABI="${ANDROID_ABI}" \

0 commit comments

Comments
 (0)