@@ -12,17 +12,20 @@ EXECUTORCH_SRCS = [
1212 "kernels/prim_ops/register_prim_ops.cpp" ,
1313]
1414
15- EXECUTORCH_CORE_SRCS = [
15+ PROGRAM_NO_PRIM_OPS_SRCS = [
16+ "method.cpp" ,
17+ "method_meta.cpp" ,
18+ "program.cpp" ,
19+ "tensor_parser_exec_aten.cpp" ,
20+ ]
21+
22+ EXECUTORCH_CORE_SRCS = sorted ([
1623 "runtime/backend/interface.cpp" ,
1724 "runtime/core/evalue.cpp" ,
1825 "runtime/core/exec_aten/util/tensor_shape_to_c_string.cpp" ,
1926 "runtime/core/exec_aten/util/tensor_util_portable.cpp" ,
2027 "runtime/core/portable_type/tensor_impl.cpp" ,
2128 "runtime/core/tag.cpp" ,
22- "runtime/executor/method.cpp" ,
23- "runtime/executor/method_meta.cpp" ,
24- "runtime/executor/program.cpp" ,
25- "runtime/executor/tensor_parser_exec_aten.cpp" ,
2629 "runtime/executor/tensor_parser_portable.cpp" ,
2730 "runtime/kernel/operator_registry.cpp" ,
2831 "runtime/platform/abort.cpp" ,
@@ -31,7 +34,7 @@ EXECUTORCH_CORE_SRCS = [
3134 "runtime/platform/profiler.cpp" ,
3235 "runtime/platform/runtime.cpp" ,
3336 "schema/extended_header.cpp" ,
34- ]
37+ ] + [ "runtime/executor/" + x for x in PROGRAM_NO_PRIM_OPS_SRCS ])
3538
3639PORTABLE_KERNELS_SRCS = [
3740 "kernels/portable/cpu/op__empty_dim_order.cpp" ,
0 commit comments