@@ -196,27 +196,27 @@ def define_common_targets(is_fbcode = False):
196196 _is_external_target = True ,
197197 )
198198
199- if not runtime . is_oss :
200- runtime .cxx_python_extension (
201- name = "selective_build" ,
202- srcs = [
203- "selective_build.cpp" ,
204- ],
205- base_module = "executorch.codegen.tools" ,
206- types = ["selective_build.pyi" ],
207- preprocessor_flags = [
208- "-DEXECUTORCH_PYTHON_MODULE_NAME=selective_build" ,
209- ],
210- deps = [
211- "//executorch/runtime/core:core" ,
212- "//executorch/schema:program" ,
213- ],
214- external_deps = [
215- "pybind11" ,
216- ],
217- use_static_deps = True ,
218- visibility = ["//executorch/codegen/..." ],
219- )
199+
200+ runtime .cxx_python_extension (
201+ name = "selective_build" ,
202+ srcs = [
203+ "selective_build.cpp" ,
204+ ],
205+ base_module = "executorch.codegen.tools" ,
206+ types = ["selective_build.pyi" ],
207+ preprocessor_flags = [
208+ "-DEXECUTORCH_PYTHON_MODULE_NAME=selective_build" ,
209+ ],
210+ deps = [
211+ "//executorch/runtime/core:core" ,
212+ "//executorch/schema:program" ,
213+ ],
214+ external_deps = [
215+ "pybind11" ,
216+ ],
217+ use_static_deps = True ,
218+ visibility = ["//executorch/codegen/..." ],
219+ )
220220
221221
222222 # TODO(larryliu0820): This is a hack to only run these two on fbcode. These targets depends on exir which is only available in fbcode.
@@ -255,20 +255,20 @@ def define_common_targets(is_fbcode = False):
255255 ],
256256 )
257257
258- runtime .python_test (
259- name = "test_selective_build" ,
260- srcs = [
261- "test/test_selective_build.py" ,
262- ],
263- package_style = "inplace" ,
264- visibility = [
265- "PUBLIC" ,
266- ],
267- deps = [
268- ":selective_build" ,
269- "fbsource//third-party/pypi/expecttest:expecttest" ,
270- "//caffe2:torch" ,
271- "//executorch/exir:lib" ,
272- ],
273- _is_external_target = True ,
274- )
258+ runtime .python_test (
259+ name = "test_selective_build" ,
260+ srcs = [
261+ "test/test_selective_build.py" ,
262+ ],
263+ package_style = "inplace" ,
264+ visibility = [
265+ "PUBLIC" ,
266+ ],
267+ deps = [
268+ ":selective_build" ,
269+ "fbsource//third-party/pypi/expecttest:expecttest" ,
270+ "//caffe2:torch" ,
271+ "//executorch/exir:lib" ,
272+ ],
273+ _is_external_target = True ,
274+ )
0 commit comments