Skip to content

Commit 04a82b7

Browse files
kirklandsignfacebook-github-bot
authored andcommitted
Define unused variable in build_android_llm_demo.sh (#6303)
Summary: Pull Request resolved: #6303 Reviewed By: Riandy Differential Revision: D64490760 Pulled By: cmodi-meta fbshipit-source-id: 316ce4c2ae6f91cbf161ee715dbfc2d2b30016ae
1 parent 63f0718 commit 04a82b7

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)