Skip to content

Commit 6a418a6

Browse files
authored
Android build use SUPPORT_REGEX_LOOKAHEAD=ON (#10586)
Supports OSS models such as Qwen, phi-4-mini, etc.
1 parent b2eac7d commit 6a418a6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/build_android_library.sh

+2
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ build_android_native_library() {
5555
-DEXECUTORCH_BUILD_QNN="${EXECUTORCH_BUILD_QNN}" \
5656
-DQNN_SDK_ROOT="${QNN_SDK_ROOT}" \
5757
-DEXECUTORCH_BUILD_VULKAN="${EXECUTORCH_BUILD_VULKAN}" \
58+
-DSUPPORT_REGEX_LOOKAHEAD=ON \
5859
-DCMAKE_BUILD_TYPE="${EXECUTORCH_CMAKE_BUILD_TYPE}" \
5960
-B"${CMAKE_OUT}"
6061

@@ -77,6 +78,7 @@ build_android_native_library() {
7778
-DNEURON_BUFFER_ALLOCATOR_LIB="$NEURON_BUFFER_ALLOCATOR_LIB" \
7879
-DEXECUTORCH_BUILD_KERNELS_CUSTOM="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
7980
-DEXECUTORCH_BUILD_LLAMA_JNI="${EXECUTORCH_BUILD_EXTENSION_LLM:-ON}" \
81+
-DSUPPORT_REGEX_LOOKAHEAD=ON \
8082
-DCMAKE_BUILD_TYPE="${EXECUTORCH_CMAKE_BUILD_TYPE}" \
8183
-B"${CMAKE_OUT}"/extension/android
8284

0 commit comments

Comments
 (0)