File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
shim_et/xplat/executorch/build Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,9 @@ def _patch_kwargs_common(kwargs):
187
187
for dep_type in ("deps" , "exported_deps" ):
188
188
env .patch_deps (kwargs , dep_type )
189
189
190
+ if "visibility" not in kwargs :
191
+ kwargs ["visibility" ] = ["//executorch/..." ]
192
+
190
193
# Patch up references to "//executorch/..." in lists of build targets,
191
194
# if necessary.
192
195
use_static_deps = kwargs .pop ("use_static_deps" , False )
@@ -202,10 +205,6 @@ def _patch_kwargs_common(kwargs):
202
205
function = native .partial (_patch_executorch_references , use_static_deps = use_static_deps ),
203
206
)
204
207
205
- # Make all targets private by default, like in xplat.
206
- if "visibility" not in kwargs :
207
- kwargs ["visibility" ] = []
208
-
209
208
# If we see certain strings in the "visibility" list, expand them.
210
209
if "@EXECUTORCH_CLIENTS" in kwargs ["visibility" ]:
211
210
# See env.executorch_clients for this list.
You can’t perform that action at this time.
0 commit comments