Skip to content

Commit 4b3a77e

Browse files
committed
chore: fix builds for OCR and text to image
1 parent 9e2a133 commit 4b3a77e

65 files changed

Lines changed: 4 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/react-native-executorch/android/src/main/cpp/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ set(EXECUTORCH_WHOLE_ARCHIVE_LIBS
5454
"${EXECUTORCH_STATIC_DIR}/liboptimized_native_cpu_ops_lib.a"
5555
"${EXECUTORCH_STATIC_DIR}/libxnnpack_backend.a"
5656
"${EXECUTORCH_STATIC_DIR}/libvulkan_backend.a"
57+
"${EXECUTORCH_STATIC_DIR}/libexecutorch.a"
5758
)
5859

5960
# Libs linked normally — only pull in symbols that are referenced.
@@ -62,7 +63,6 @@ set(EXECUTORCH_WHOLE_ARCHIVE_LIBS
6263
# overlap with common/runner/*.cpp).
6364
set(EXECUTORCH_STATIC_LIBS
6465
"${EXECUTORCH_STATIC_DIR}/libexecutorch_core.a"
65-
"${EXECUTORCH_STATIC_DIR}/libexecutorch.a"
6666
"${EXECUTORCH_STATIC_DIR}/libextension_module.a"
6767
"${EXECUTORCH_STATIC_DIR}/libextension_tensor.a"
6868
"${EXECUTORCH_STATIC_DIR}/libextension_threadpool.a"
@@ -74,7 +74,6 @@ set(EXECUTORCH_STATIC_LIBS
7474
"${EXECUTORCH_STATIC_DIR}/liboptimized_kernels.a"
7575
"${EXECUTORCH_STATIC_DIR}/libXNNPACK.a"
7676
"${EXECUTORCH_STATIC_DIR}/libxnnpack-microkernels-prod.a"
77-
"${EXECUTORCH_STATIC_DIR}/libkleidiai.a"
7877
"${EXECUTORCH_STATIC_DIR}/libre2.a"
7978
"${EXECUTORCH_STATIC_DIR}/libcpublas.a"
8079
"${EXECUTORCH_STATIC_DIR}/libeigen_blas.a"
@@ -130,6 +129,9 @@ if(ANDROID_ABI STREQUAL "arm64-v8a")
130129
set(EXECUTORCH_LIBS
131130
"cpuinfo"
132131
)
132+
133+
# kleidiai is ARM-only (Kleidi AI acceleration library)
134+
list(APPEND EXECUTORCH_STATIC_LIBS "${EXECUTORCH_STATIC_DIR}/libkleidiai.a")
133135
endif()
134136

135137
# ------- OpenCV -------
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)