@@ -33,7 +33,9 @@ if(NOT CMAKE_CXX_STANDARD)
3333 # Can't set to 11 due to executor_runner.cpp make_unique
3434endif ()
3535
36- set (_common_compile_options -Wno-deprecated-declarations -fPIC -ffunction-sections -fdata-sections)
36+ set (_common_compile_options -Wno-deprecated-declarations -fPIC
37+ -ffunction-sections -fdata-sections
38+ )
3739
3840# Let files say "include <executorch/path/to/header.h>".
3941set (_common_include_directories ${EXECUTORCH_ROOT} /..)
@@ -43,7 +45,9 @@ find_package(
4345 gflags REQUIRED PATHS ${CMAKE_CURRENT_BINARY_DIR} /../../third-party
4446)
4547
46- target_include_directories (executorch_core INTERFACE ${_common_include_directories} )
48+ target_include_directories (
49+ executorch_core INTERFACE ${_common_include_directories}
50+ )
4751
4852# ------------------------------ OPTIONS BEGIN -------------------------------
4953
@@ -63,12 +67,13 @@ option(EXECUTORCH_SELECT_ALL_OPS
6367)
6468
6569# Option to enable parsing ops and dtypes directly from model pte file
66- option (EXECUTORCH_SELECT_OPS_FROM_MODEL "Enable op selection from pte during build." OFF
70+ option (EXECUTORCH_SELECT_OPS_FROM_MODEL
71+ "Enable op selection from pte during build." OFF
6772)
6873
69- # Option to enable dtype selective build. Note: must be using selective build model API.
70- option (EXECUTORCH_DTYPE_SELECTIVE_BUILD "Enable dtype selective build." OFF
71- )
74+ # Option to enable dtype selective build. Note: must be using selective build
75+ # model API.
76+ option (EXECUTORCH_DTYPE_SELECTIVE_BUILD "Enable dtype selective build." OFF )
7277# ------------------------------- OPTIONS END --------------------------------
7378
7479#
@@ -155,7 +160,8 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
155160 target_link_options_gc_sections(selective_build_test)
156161endif ()
157162target_link_libraries (
158- selective_build_test PRIVATE executorch_core gflags select_build_lib
163+ selective_build_test PRIVATE executorch_core extension_evalue_util
164+ extension_runner_util gflags select_build_lib
159165)
160166executorch_target_link_options_shared_lib(select_build_lib)
161167target_compile_options (selective_build_test PUBLIC ${_common_compile_options} )
0 commit comments