@@ -33,7 +33,9 @@ if(NOT CMAKE_CXX_STANDARD)
33
33
# Can't set to 11 due to executor_runner.cpp make_unique
34
34
endif ()
35
35
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
+ )
37
39
38
40
# Let files say "include <executorch/path/to/header.h>".
39
41
set (_common_include_directories ${EXECUTORCH_ROOT} /.. )
@@ -43,7 +45,9 @@ find_package(
43
45
gflags REQUIRED PATHS ${CMAKE_CURRENT_BINARY_DIR} /../../third-party
44
46
)
45
47
46
- target_include_directories (executorch_core INTERFACE ${_common_include_directories} )
48
+ target_include_directories (
49
+ executorch_core INTERFACE ${_common_include_directories}
50
+ )
47
51
48
52
# ------------------------------ OPTIONS BEGIN -------------------------------
49
53
@@ -63,12 +67,13 @@ option(EXECUTORCH_SELECT_ALL_OPS
63
67
)
64
68
65
69
# 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
67
72
)
68
73
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 )
72
77
# ------------------------------- OPTIONS END --------------------------------
73
78
74
79
#
@@ -155,7 +160,8 @@ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
155
160
target_link_options_gc_sections (selective_build_test )
156
161
endif ()
157
162
target_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
159
165
)
160
166
executorch_target_link_options_shared_lib (select_build_lib )
161
167
target_compile_options (selective_build_test PUBLIC ${_common_compile_options} )
0 commit comments