Skip to content

Commit b21ebab

Browse files
committed
Update on "Reapply "Add (and fix) OSS check that et_operator_library dtype_selective_build builds (#9245)""
This was reverted due to internal CI failure; reapplying with that fixed (the new Buck target needed to be moved). Original summary: This wasn't checked, and it's easy to forget to update the all_deps targets if we don't check. Now we check. Differential Revision: [D76458040](https://our.internmc.facebook.com/intern/diff/D76458040/) [ghstack-poisoned]
1 parent 761ccb3 commit b21ebab

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/selective_build/targets.bzl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@ def define_common_targets():
2525
],
2626
)
2727

28+
if runtime.is_oss or is_xplat():
29+
executorch_generated_lib(
30+
name = "select_all_dtype_selective_lib",
31+
functions_yaml_target = "//executorch/kernels/portable:functions.yaml",
32+
kernel_deps = [
33+
"//executorch/kernels/portable:operators",
34+
],
35+
# Setting dtype_selective_build without using list or dict selection isn't a
36+
# typical use case; we just do it here so that we can test that our mechanism
37+
# for getting buck deps right for dtype_selective_build is working.
38+
dtype_selective_build = True,
39+
deps = [
40+
":select_all_ops",
41+
],
42+
)
43+
2844
# Select a list of operators: defined in `ops`
2945
et_operator_library(
3046
name = "select_ops_in_list",

0 commit comments

Comments
 (0)