Skip to content

Commit 957d1f1

Browse files
committed
Link custom_ops
1 parent 320164a commit 957d1f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

extension/android/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,12 @@ if(TARGET vulkan_backend)
7171
endif()
7272

7373
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
74-
list(APPEND link_libraries custom_ops)
7574
add_subdirectory(
7675
${EXECUTORCH_ROOT}/extension/llm/custom_ops
7776
${CMAKE_CURRENT_BINARY_DIR}/../../extension/llm/custom_ops
7877
)
78+
list(APPEND link_libraries custom_ops)
79+
target_link_options_shared_lib(custom_ops)
7980
endif()
8081

8182
add_library(executorch_jni SHARED jni/jni_layer.cpp)

0 commit comments

Comments
 (0)