Skip to content

Commit 6414aae

Browse files
FbsourceTargetsToBuck Botmeta-codesync[bot]
authored andcommitted
Rename build files from TARGETS to BUCK (group ID: -7288301333183062993) (#19425)
Summary: Pull Request resolved: #19425 Reviewed By: bigfootjon Differential Revision: D104414850
1 parent 93b764e commit 6414aae

5 files changed

Lines changed: 554 additions & 547 deletions

File tree

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
12
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
23

34
oncall("executorch")
45

5-
python_unittest(
6+
fbcode_target(_kind = python_unittest,
67
name = "test_exir_dialect_ops",
78
srcs = [
89
"test_exir_dialect_ops.py",

exir/emit/BUCK

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,45 @@
1+
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
2+
oncall("executorch")
13
# add this empty BUCK file to unblock landing. Without this, we get land error:
24
# "No build file at xplat/executorch/exir/BUCK when resolving target fbsource//xplat/executorch/exir:."
35

4-
oncall("executorch")
6+
7+
# !!!! fbcode/executorch/exir/emit/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!
8+
9+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
10+
11+
12+
fbcode_target(_kind = runtime.python_library,
13+
name = "lib",
14+
srcs = [
15+
"__init__.py",
16+
],
17+
deps = [
18+
":emit",
19+
],
20+
)
21+
22+
fbcode_target(_kind = runtime.python_library,
23+
name = "emit",
24+
srcs = [
25+
"_emit_program.py",
26+
"_emitter.py",
27+
],
28+
deps = [
29+
"fbsource//third-party/pypi/typing-extensions:typing-extensions",
30+
"//caffe2:torch",
31+
"//executorch/exir:delegate",
32+
"//executorch/exir:error",
33+
"//executorch/exir:memory",
34+
"//executorch/exir:print_program",
35+
"//executorch/exir:schema",
36+
"//executorch/exir:tensor",
37+
"//executorch/exir:types",
38+
"//executorch/exir:version",
39+
"//executorch/exir/dialects/backend:lib",
40+
"//executorch/exir/dialects/edge:lib",
41+
"//executorch/exir/operator:convert",
42+
"//executorch/exir/passes:prim_ops_py_registry",
43+
"//executorch/extension/pytree:pylib",
44+
],
45+
)

exir/emit/TARGETS

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)