Skip to content

Commit 7b4ad69

Browse files
GregoryComerfacebook-github-bot
authored andcommitted
Don't apply path rewriting rules for //executorch_models
Summary: ExecuTorch buck targets have rules to avoid explicit //xplat/executorch references. Due to the way this works, it is also blocking references to //xplat/executorch_models, but does not properly rewrite paths for this case. This change updates the //executorch check to //executorch/ or //executorch:, allowing the executorch_models deps to be used. Differential Revision: D66685959
1 parent 5f0a14a commit 7b4ad69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shim/xplat/executorch/build/runtime_wrapper.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _patch_executorch_references(targets, use_static_deps = False):
5959
return targets
6060
out_targets = []
6161
for target in targets:
62-
if target.startswith("//xplat/executorch"):
62+
if target.startswith("//xplat/executorch/") or target.startswith("//xplat/executorch:"):
6363
fail("References to executorch build targets must use " +
6464
"`//executorch`, not `//xplat/executorch`")
6565

0 commit comments

Comments
 (0)