Skip to content

Commit 77df7b4

Browse files
authored
Fix MacOS CMake build
Fix deps in extension_threadpool Pull Request resolved: #5042
1 parent e3cbeed commit 77df7b4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

extension/llm/custom_ops/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ if(EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT)
9393
target_link_libraries(custom_ops_aot_lib PUBLIC executorch_no_prim_ops)
9494
endif()
9595

96-
target_link_libraries(custom_ops_aot_lib PUBLIC cpublas torch)
96+
target_link_libraries(
97+
custom_ops_aot_lib PUBLIC cpublas torch extension_threadpool
98+
)
9799
if(WIN32)
98100
# There is no direct replacement for libpthread.so on Windows. For the
99101
# Windows build, link directly against pthreadpool and cpuinfo.

extension/threadpool/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ if(NOT CMAKE_CXX_STANDARD)
2121
endif()
2222

2323
add_library(extension_threadpool threadpool.cpp threadpool_guard.cpp cpuinfo_utils.cpp)
24-
target_link_libraries(extension_threadpool PUBLIC executorch cpuinfo pthreadpool)
24+
target_link_libraries(
25+
extension_threadpool PUBLIC executorch_no_prim_ops cpuinfo pthreadpool
26+
)
2527
target_include_directories(extension_threadpool PUBLIC ${EXECUTORCH_ROOT}/..)
2628
target_include_directories(
2729
extension_threadpool

0 commit comments

Comments
 (0)