File tree Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Expand file tree Collapse file tree 2 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,13 @@ PROGRAM_NO_PRIM_OPS_SRCS = [
1919 "tensor_parser_exec_aten.cpp" ,
2020]
2121
22+ PLATFORM_SRCS = [
23+ "abort.cpp" ,
24+ "log.cpp" ,
25+ "profiler.cpp" ,
26+ "runtime.cpp" ,
27+ ]
28+
2229EXECUTORCH_CORE_SRCS = sorted ([
2330 "runtime/backend/interface.cpp" ,
2431 "runtime/core/evalue.cpp" ,
@@ -28,13 +35,9 @@ EXECUTORCH_CORE_SRCS = sorted([
2835 "runtime/core/tag.cpp" ,
2936 "runtime/executor/tensor_parser_portable.cpp" ,
3037 "runtime/kernel/operator_registry.cpp" ,
31- "runtime/platform/abort.cpp" ,
3238 "runtime/platform/default/posix.cpp" ,
33- "runtime/platform/log.cpp" ,
34- "runtime/platform/profiler.cpp" ,
35- "runtime/platform/runtime.cpp" ,
3639 "schema/extended_header.cpp" ,
37- ] + ["runtime/executor/" + x for x in PROGRAM_NO_PRIM_OPS_SRCS ])
40+ ] + ["runtime/executor/" + x for x in PROGRAM_NO_PRIM_OPS_SRCS ] + [ "runtime/platform/" + x for x in PLATFORM_SRCS ] )
3841
3942PORTABLE_KERNELS_SRCS = [
4043 "kernels/portable/cpu/op__empty_dim_order.cpp" ,
Original file line number Diff line number Diff line change 1+ load ("@fbsource//xplat/executorch/build:build_variables.bzl" , "PLATFORM_SRCS" )
12load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
23load (":log.bzl" , "get_et_logging_flags" )
34
@@ -69,12 +70,7 @@ def define_common_targets():
6970 "profiler.h" ,
7071 "runtime.h" ,
7172 ],
72- srcs = [
73- "abort.cpp" ,
74- "log.cpp" ,
75- "profiler.cpp" ,
76- "runtime.cpp" ,
77- ],
73+ srcs = PLATFORM_SRCS ,
7874 exported_preprocessor_flags = get_profiling_flags () + get_et_logging_flags (),
7975 exported_deps = [
8076 "//executorch/runtime/platform:pal_interface" ,
You can’t perform that action at this time.
0 commit comments