Skip to content

Commit ea92179

Browse files
committed
Update
[ghstack-poisoned]
1 parent 6346348 commit ea92179

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

shim_et/xplat/executorch/build/runtime_wrapper.bzl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ def _patch_kwargs_common(kwargs):
187187
for dep_type in ("deps", "exported_deps"):
188188
env.patch_deps(kwargs, dep_type)
189189

190+
if "visibility" not in kwargs:
191+
kwargs["visibility"] = ["//executorch/..."]
192+
190193
# Patch up references to "//executorch/..." in lists of build targets,
191194
# if necessary.
192195
use_static_deps = kwargs.pop("use_static_deps", False)
@@ -202,10 +205,6 @@ def _patch_kwargs_common(kwargs):
202205
function = native.partial(_patch_executorch_references, use_static_deps = use_static_deps),
203206
)
204207

205-
# Make all targets private by default, like in xplat.
206-
if "visibility" not in kwargs:
207-
kwargs["visibility"] = []
208-
209208
# If we see certain strings in the "visibility" list, expand them.
210209
if "@EXECUTORCH_CLIENTS" in kwargs["visibility"]:
211210
# See env.executorch_clients for this list.

0 commit comments

Comments
 (0)