File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
shim_et/xplat/executorch/build Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
load ("@fbsource//xplat/executorch/backends/xnnpack/third-party:third_party_libs.bzl" , "third_party_dep" )
2
+ load ("@fbsource//xplat/executorch/build:build_variables.bzl" , "THREADPOOL_SRCS" )
2
3
load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
3
4
4
5
def define_common_targets ():
@@ -8,11 +9,9 @@ def define_common_targets():
8
9
TARGETS and BUCK files that call this function.
9
10
"""
10
11
11
- _THREADPOOL_SRCS = [
12
- "thread_parallel.cpp" ,
13
- "threadpool.cpp" ,
14
- "threadpool_guard.cpp" ,
15
- ] + (["fb/threadpool_use_n_threads.cpp" ] if not runtime .is_oss else [])
12
+ _THREADPOOL_SRCS = THREADPOOL_SRCS + (
13
+ ["fb/threadpool_use_n_threads.cpp" ] if not runtime .is_oss else []
14
+ )
16
15
17
16
_THREADPOOL_HEADERS = [
18
17
"threadpool.h" ,
Original file line number Diff line number Diff line change @@ -363,12 +363,14 @@ EXTENSION_TENSOR_SRCS = [
363
363
"extension/tensor/tensor_ptr_maker.cpp" ,
364
364
]
365
365
366
- EXTENSION_THREADPOOL_SRCS = [
367
- "extension/threadpool/ thread_parallel.cpp" ,
368
- "extension/threadpool/ threadpool.cpp" ,
369
- "extension/threadpool/ threadpool_guard.cpp" ,
366
+ THREADPOOL_SRCS = [
367
+ "thread_parallel.cpp" ,
368
+ "threadpool.cpp" ,
369
+ "threadpool_guard.cpp" ,
370
370
]
371
371
372
+ EXTENSION_THREADPOOL_SRCS = ["extension/threadpool/" + x for x in THREADPOOL_SRCS ]
373
+
372
374
EXTENSION_TRAINING_SRCS = [
373
375
"extension/data_loader/file_data_loader.cpp" ,
374
376
"extension/data_loader/mmap_data_loader.cpp" ,
You can’t perform that action at this time.
0 commit comments