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 11load ("@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" )
23load ("@fbsource//xplat/executorch/build:runtime_wrapper.bzl" , "runtime" )
34
45def define_common_targets ():
@@ -8,11 +9,9 @@ def define_common_targets():
89 TARGETS and BUCK files that call this function.
910 """
1011
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+ )
1615
1716 _THREADPOOL_HEADERS = [
1817 "threadpool.h" ,
Original file line number Diff line number Diff line change @@ -363,12 +363,14 @@ EXTENSION_TENSOR_SRCS = [
363363 "extension/tensor/tensor_ptr_maker.cpp" ,
364364]
365365
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" ,
370370]
371371
372+ EXTENSION_THREADPOOL_SRCS = ["extension/threadpool/" + x for x in THREADPOOL_SRCS ]
373+
372374EXTENSION_TRAINING_SRCS = [
373375 "extension/data_loader/file_data_loader.cpp" ,
374376 "extension/data_loader/mmap_data_loader.cpp" ,
You can’t perform that action at this time.
0 commit comments