Skip to content

Commit 80c3f63

Browse files
authored
Include custom ops in xnn_executor_runner if they're built (#9069)
(We should probably merge xnn_executor_runner and executor_runner if there's no particular use for a portable-only runner, but hey this is an incremental improvement.)
1 parent 46d0580 commit 80c3f63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backends/xnnpack/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# cmake-format -i CMakeLists.txt
1111
# ~~~
1212

13-
cmake_minimum_required(VERSION 3.19)
13+
cmake_minimum_required(VERSION 3.24)
1414

1515
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
1616

@@ -124,6 +124,10 @@ else()
124124
list(APPEND xnn_executor_runner_libs portable_ops_lib)
125125
endif()
126126

127+
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
128+
list(APPEND xnn_executor_runner_libs $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
129+
endif()
130+
127131
list(APPEND xnn_executor_runner_libs xnnpack_backend executorch)
128132

129133
# ios can only build library but not binary

0 commit comments

Comments
 (0)