Skip to content

Commit 46c642b

Browse files
kirklandsignDannyYuyang-quic
authored andcommitted
Android build script allow skip LLM
Differential Revision: D71236623 Pull Request resolved: pytorch#9304
1 parent 2e9dc93 commit 46c642b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/build_android_library.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ build_android_native_library() {
5757
-DEXECUTORCH_BUILD_EXTENSION_TENSOR=ON \
5858
-DEXECUTORCH_BUILD_KERNELS_OPTIMIZED=ON \
5959
-DEXECUTORCH_BUILD_KERNELS_QUANTIZED=ON \
60-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
60+
-DEXECUTORCH_BUILD_KERNELS_CUSTOM="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
6161
-DEXECUTORCH_BUILD_NEURON="${EXECUTORCH_BUILD_NEURON}" \
6262
-DNEURON_BUFFER_ALLOCATOR_LIB="${NEURON_BUFFER_ALLOCATOR_LIB}" \
6363
-DEXECUTORCH_BUILD_QNN="${EXECUTORCH_BUILD_QNN}" \
@@ -88,8 +88,8 @@ build_android_native_library() {
8888
-DEXECUTORCH_LOG_LEVEL=Info \
8989
-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH \
9090
-DNEURON_BUFFER_ALLOCATOR_LIB="$NEURON_BUFFER_ALLOCATOR_LIB" \
91-
-DEXECUTORCH_BUILD_KERNELS_CUSTOM=ON \
92-
-DEXECUTORCH_BUILD_LLAMA_JNI=ON \
91+
-DEXECUTORCH_BUILD_KERNELS_CUSTOM="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
92+
-DEXECUTORCH_BUILD_LLAMA_JNI="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
9393
-DCMAKE_BUILD_TYPE="${EXECUTORCH_CMAKE_BUILD_TYPE}" \
9494
-B"${CMAKE_OUT}"/extension/android
9595

0 commit comments

Comments
 (0)