Skip to content

Commit a675f8b

Browse files
authored
Update build_apple_frameworks.sh
1 parent 9a02eaf commit a675f8b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/build_apple_frameworks.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ libextension_module.a,\
3030
libextension_tensor.a,\
3131
:$HEADERS_RELATIVE_PATH:ExecuTorch"
3232

33+
FRAMEWORK_THREADPOOL="threadpool:\
34+
libcpuinfo.a,\
35+
libextension_threadpool.a,\
36+
libpthreadpool.a,\
37+
:"
38+
3339
FRAMEWORK_BACKEND_COREML="backend_coreml:\
3440
libcoreml_util.a,\
3541
libcoreml_inmemoryfs.a,\
@@ -42,9 +48,6 @@ libmpsdelegate.a,\
4248

4349
FRAMEWORK_BACKEND_XNNPACK="backend_xnnpack:\
4450
libXNNPACK.a,\
45-
libcpuinfo.a,\
46-
libextension_threadpool.a,\
47-
libpthreadpool.a,\
4851
libxnnpack_backend.a,\
4952
libmicrokernels-prod.a,\
5053
:"
@@ -57,6 +60,7 @@ FRAMEWORK_KERNELS_OPTIMIZED="kernels_optimized:\
5760
libcpublas.a,\
5861
liboptimized_kernels.a,\
5962
liboptimized_native_cpu_ops_lib.a,\
63+
libportable_kernels.a,\
6064
:"
6165

6266
FRAMEWORK_KERNELS_PORTABLE="kernels_portable:\
@@ -226,6 +230,7 @@ for mode in "${MODES[@]}"; do
226230
done
227231

228232
append_framework_flag "" "$FRAMEWORK_EXECUTORCH" "$mode"
233+
append_framework_flag "" "$FRAMEWORK_THREADPOOL" "$mode"
229234
append_framework_flag "EXECUTORCH_BUILD_COREML" "$FRAMEWORK_BACKEND_COREML" "$mode"
230235
append_framework_flag "EXECUTORCH_BUILD_MPS" "$FRAMEWORK_BACKEND_MPS" "$mode"
231236
append_framework_flag "EXECUTORCH_BUILD_XNNPACK" "$FRAMEWORK_BACKEND_XNNPACK" "$mode"

0 commit comments

Comments
 (0)