Skip to content

Commit 9c8cb1e

Browse files
lucylqfacebook-github-bot
authored andcommitted
Model example for fbcode only (#3977)
Summary: Pull Request resolved: #3977 Resolve test failure https://www.internalfb.com/intern/test/562950092964137 Introduced by D57950299, when adding BUCK to selective build Reviewed By: mergennachin, larryliu0820 Differential Revision: D58552651 fbshipit-source-id: 47677b8bcd1183af2e498b8032b2a427b0511a41
1 parent 70743bb commit 9c8cb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/selective_build/targets.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "runtime")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "is_xplat", "runtime")
22
load("@fbsource//xplat/executorch/codegen:codegen.bzl", "et_operator_library", "executorch_generated_lib")
33

44
def define_common_targets():
@@ -88,7 +88,7 @@ def define_common_targets():
8888
# Select all ops from a given model
8989
# TODO(larryliu0820): Add this
9090

91-
if not runtime.is_oss:
91+
if not runtime.is_oss and not is_xplat():
9292
runtime.genrule(
9393
name = "add_mul_model",
9494
outs = {"add_mul": ["add_mul.pte"]},

0 commit comments

Comments
 (0)