File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
shim_et/xplat/executorch/build Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ def _patch_kwargs_common(kwargs):
182182 # don't pick up unexpected clients while things are still in flux.
183183 if not kwargs .pop ("_is_external_target" , False ):
184184 for target in kwargs .get ("visibility" , []):
185- if not (target .startswith ("//executorch" ) or target .startswith ("//pytorch/tokenizers" ) or target .startswith ("@" )):
185+ if not (target == "PUBLIC" or target .startswith ("//executorch" ) or target .startswith ("//pytorch/tokenizers" ) or target .startswith ("@" )):
186186 fail ("Please manage all external visibility using the " +
187187 "EXECUTORCH_CLIENTS list in " +
188188 "//executorch/build/fb/clients.bzl. " +
@@ -199,7 +199,7 @@ def _patch_kwargs_common(kwargs):
199199 env .patch_deps (kwargs , dep_type )
200200
201201 if "visibility" not in kwargs :
202- kwargs ["visibility" ] = ["//executorch/... " ]
202+ kwargs ["visibility" ] = ["PUBLIC " ]
203203
204204 # Patch up references to "//executorch/..." in lists of build targets,
205205 # if necessary.
You can’t perform that action at this time.
0 commit comments