Skip to content

Commit ebea003

Browse files
authored
Enable model based selective build on xplat
Differential Revision: D71070646 Pull Request resolved: #9205
1 parent fae734f commit ebea003

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

codegen/tools/targets.bzl

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def define_common_targets(is_fbcode = False):
2828
deps = [
2929
":gen_oplist_lib",
3030
],
31+
preload_deps = [] if runtime.is_oss else ["//executorch/codegen/tools/fb:selective_build"], # TODO(larryliu0820) :selective_build doesn't build in OSS yet
3132
package_style = "inplace",
3233
visibility = [
3334
"//executorch/...",

shim_et/xplat/executorch/build/runtime_wrapper.bzl

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def _patch_kwargs_common(kwargs):
193193
# Patch up references to "//executorch/..." in lists of build targets,
194194
# if necessary.
195195
use_static_deps = kwargs.pop("use_static_deps", False)
196-
for dep_type in ("deps", "exported_deps", "visibility"):
196+
for dep_type in ("deps", "exported_deps", "visibility", "preload_deps"):
197197
if kwargs.get(dep_type):
198198
# deps may contain select() elements, dicts that map names to lists
199199
# of targets. selects.apply() will run the provided function on all

0 commit comments

Comments
 (0)