Skip to content

Commit 6f2842b

Browse files
committed
Update
[ghstack-poisoned]
1 parent 643e10e commit 6f2842b

File tree

3 files changed

+1
-18
lines changed

3 files changed

+1
-18
lines changed

build/executorch-config.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ set(lib_list
6565
neuron_backend
6666
qnn_executorch_backend
6767
portable_ops_lib
68+
custom_ops
6869
extension_module
6970
extension_module_static
7071
extension_parallel

examples/models/llama/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ if(CMAKE_TOOLCHAIN_IOS OR ANDROID)
8484
target_link_options_shared_lib(executorch)
8585
endif()
8686

87-
# custom ops library
88-
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
89-
add_subdirectory(
90-
${CMAKE_CURRENT_SOURCE_DIR}/../../../extension/llm/custom_ops
91-
${CMAKE_CURRENT_BINARY_DIR}/../../../extension/llm/custom_ops
92-
)
93-
endif()
94-
9587
# llama_runner library
9688
add_subdirectory(runner)
9789

@@ -119,7 +111,6 @@ target_link_options_shared_lib(quantized_ops_lib)
119111
list(APPEND link_libraries quantized_kernels quantized_ops_lib)
120112

121113
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
122-
target_link_options_shared_lib(custom_ops)
123114
list(APPEND link_libraries custom_ops)
124115
endif()
125116

examples/models/llava/CMakeLists.txt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,6 @@ if(CMAKE_TOOLCHAIN_IOS OR ANDROID)
9393
target_link_options_shared_lib(executorch)
9494
endif()
9595

96-
# custom ops library
97-
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
98-
add_subdirectory(
99-
${EXECUTORCH_ROOT}/extension/llm/custom_ops
100-
${CMAKE_CURRENT_BINARY_DIR}/../../../extension/llm/custom_ops
101-
)
102-
endif()
103-
10496
# llava_runner library
10597
add_subdirectory(runner)
10698

@@ -132,7 +124,6 @@ target_link_options_shared_lib(quantized_ops_lib)
132124
list(APPEND link_libraries quantized_kernels quantized_ops_lib)
133125

134126
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
135-
target_link_options_shared_lib(custom_ops)
136127
list(APPEND link_libraries custom_ops)
137128
endif()
138129

0 commit comments

Comments
 (0)