File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Any targets that should be shared between fbcode and xplat must be defined in
2
+ # targets.bzl. This file can contain fbcode-only targets.
3
+
4
+ load(":targets.bzl", "define_common_targets")
5
+
6
+ oncall("executorch")
7
+
8
+ define_common_targets()
Original file line number Diff line number Diff line change
1
+ load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "get_aten_mode_options" , "runtime" )
2
+
3
+ def define_common_targets ():
4
+ """Defines targets that should be shared between fbcode and xplat.
5
+
6
+ The directory containing this targets.bzl file should also contain both
7
+ TARGETS and BUCK files that call this function.
8
+ """
9
+
10
+ runtime .cxx_library (
11
+ name = "thread_parallel" ,
12
+ exported_headers = [
13
+ "thread_parallel.h" ,
14
+ ],
15
+ visibility = [
16
+ "//executorch/..." ,
17
+ "@EXECUTORCH_CLIENTS" ,
18
+ ],
19
+ deps = [
20
+ "//executorch/runtime/kernel:thread_parallel_interface" ,
21
+ ],
22
+ )
You can’t perform that action at this time.
0 commit comments