File tree Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Expand file tree Collapse file tree 5 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -810,6 +810,10 @@ if(EXECUTORCH_BUILD_PYBIND)
810
810
torch
811
811
)
812
812
813
+ if (EXECUTORCH_BUILD_TESTS )
814
+ list (APPEND _dep_libs test_backend_compiler_lib )
815
+ endif ()
816
+
813
817
if (EXECUTORCH_BUILD_KERNELS_OPTIMIZED )
814
818
list (APPEND _dep_libs optimized_native_cpu_ops_lib )
815
819
else ()
Original file line number Diff line number Diff line change @@ -63,8 +63,6 @@ addopts =
63
63
--ignore =exir/backend/test/demos
64
64
--ignore =exir/backend/test/test_backends.py
65
65
--ignore =exir/backend/test/test_backends_lifted.py
66
- --ignore =exir/backend/test/test_compatibility.py
67
- --ignore =exir/backend/test/test_lowered_backend_module.py
68
66
--ignore =exir/backend/test/test_partitioner.py
69
67
--ignore =exir/tests/test_common.py
70
68
--ignore =exir/tests/test_memory_format_ops_pass_aten.py
Original file line number Diff line number Diff line change @@ -152,3 +152,23 @@ target_include_directories(
152
152
PRIVATE "${CMAKE_INSTALL_PREFIX} /schema/include"
153
153
"${EXECUTORCH_ROOT} /third-party/flatbuffers/include"
154
154
)
155
+
156
+ list (TRANSFORM _test_backend_compiler_lib__srcs PREPEND "${EXECUTORCH_ROOT} /" )
157
+ add_library (
158
+ test_backend_compiler_lib
159
+ STATIC
160
+ ${_test_backend_compiler_lib__srcs}
161
+ )
162
+
163
+ target_link_libraries (
164
+ test_backend_compiler_lib
165
+ PUBLIC
166
+ executorch_core
167
+ )
168
+
169
+ target_link_options_shared_lib (test_backend_compiler_lib )
170
+
171
+ install (
172
+ TARGETS test_backend_compiler_lib
173
+ DESTINATION lib
174
+ )
Original file line number Diff line number Diff line change @@ -718,6 +718,7 @@ def run(self):
718
718
# enabled. TODO(dbort): Remove this override once this option is
719
719
# managed by cmake itself.
720
720
"-DEXECUTORCH_SEPARATE_FLATCC_HOST_PROJECT=OFF" ,
721
+ "-DEXECUTORCH_BUILD_TESTS=ON" ,
721
722
]
722
723
723
724
build_args = [f"-j{ self .parallel } " ]
Original file line number Diff line number Diff line change @@ -150,6 +150,20 @@ deps = [
150
150
" optimized_cpublas" ,
151
151
" portable_kernels" ,
152
152
]
153
+
154
+ [targets .test_backend_compiler_lib ]
155
+ buck_targets = [
156
+ " //runtime/executor/test:test_backend_compiler_lib" ,
157
+ ]
158
+ filters = [
159
+ " .cpp$" ,
160
+ ]
161
+ excludes = [
162
+ ]
163
+ deps = [
164
+ " executorch" ,
165
+ " executorch_core" ,
166
+ ]
153
167
# ---------------------------------- core end ----------------------------------
154
168
# ---------------------------------- extension start ----------------------------------
155
169
[targets .extension_data_loader ]
You can’t perform that action at this time.
0 commit comments