Skip to content

Commit 3064308

Browse files
authored
kernel/portable deps on executorch_core only
Differential Revision: D74184952 Pull Request resolved: #10674
1 parent c2701f9 commit 3064308

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernels/portable/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@ message("Generated files ${gen_command_sources}")
5252
# Focused on portability and understandability rather than speed.
5353
#
5454
add_library(portable_kernels ${_portable_kernels__srcs})
55-
target_link_libraries(portable_kernels PRIVATE executorch)
55+
target_link_libraries(portable_kernels PRIVATE executorch_core)
5656
target_compile_options(portable_kernels PUBLIC ${_common_compile_options})
5757

5858
# Build a library for _portable_kernels__srcs
5959
#
6060
# portable_ops_lib: Register portable_ops_lib ops kernels into Executorch
6161
# runtime
6262
gen_operators_lib(
63-
LIB_NAME "portable_ops_lib" KERNEL_LIBS portable_kernels DEPS executorch
63+
LIB_NAME "portable_ops_lib" KERNEL_LIBS portable_kernels DEPS executorch_core
6464
)
6565

6666
# Portable kernels support optional parallelization (and, in the
6767
# future, perhaps other performance features). If support is present,
6868
# produce an optimized version.
6969
if(EXECUTORCH_BUILD_PTHREADPOOL AND EXECUTORCH_BUILD_KERNELS_OPTIMIZED)
7070
add_library(optimized_portable_kernels ${_portable_kernels__srcs})
71-
target_link_libraries(optimized_portable_kernels PRIVATE executorch)
71+
target_link_libraries(optimized_portable_kernels PRIVATE executorch_core)
7272
target_link_libraries(optimized_portable_kernels PUBLIC extension_threadpool)
7373
target_compile_options(optimized_portable_kernels PUBLIC ${_common_compile_options})
7474
target_include_directories(optimized_portable_kernels PRIVATE ${TORCH_INCLUDE_DIRS})

0 commit comments

Comments
 (0)