diff --git a/examples/selective_build/targets.bzl b/examples/selective_build/targets.bzl index e84362c603..173ab63fe4 100644 --- a/examples/selective_build/targets.bzl +++ b/examples/selective_build/targets.bzl @@ -1,4 +1,4 @@ -load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "runtime") +load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_oss_build_kwargs", "is_xplat", "runtime") load("@fbsource//xplat/executorch/codegen:codegen.bzl", "et_operator_library", "executorch_generated_lib") def define_common_targets(): @@ -88,7 +88,7 @@ def define_common_targets(): # Select all ops from a given model # TODO(larryliu0820): Add this - if not runtime.is_oss: + if not runtime.is_oss and not is_xplat(): runtime.genrule( name = "add_mul_model", outs = {"add_mul": ["add_mul.pte"]},