Skip to content

Commit e8514bc

Browse files
committed
Include custom_ops and XNNPACK in executor_runner if built
Somebody (larryliu0820?) pointed out that there's no particular reason to require a separate xnn_executor_runner target, and indeed we already put several other optimized things in here if they're built. ghstack-source-id: 1938f3c ghstack-comment-id: 2722889450 Pull Request resolved: #9248
1 parent b5d8e3b commit e8514bc

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
# It should also be cmake-lint clean.
4343
#
4444

45-
cmake_minimum_required(VERSION 3.19)
45+
cmake_minimum_required(VERSION 3.24)
4646
project(executorch)
4747
include(build/Utils.cmake)
4848
include(CMakeDependentOption)
@@ -914,6 +914,14 @@ if(EXECUTORCH_BUILD_EXECUTOR_RUNNER)
914914
list(APPEND _executor_runner_libs quantized_ops_lib)
915915
endif()
916916

917+
if(EXECUTORCH_BUILD_KERNELS_CUSTOM)
918+
list(APPEND _executor_runner_libs $<LINK_LIBRARY:WHOLE_ARCHIVE,custom_ops>)
919+
endif()
920+
921+
if(EXECUTORCH_BUILD_XNNPACK)
922+
list(APPEND _executor_runner_libs xnnpack_backend)
923+
endif()
924+
917925
if(EXECUTORCH_ENABLE_EVENT_TRACER)
918926
if(EXECUTORCH_BUILD_DEVTOOLS)
919927
list(APPEND _executor_runner_libs etdump flatccrt)

0 commit comments

Comments
 (0)