Skip to content

Commit 10a1288

Browse files
committed
Fix xnn linkage issue when building wheels
1 parent d89d3e7 commit 10a1288

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -738,9 +738,9 @@ if(EXECUTORCH_BUILD_PYBIND)
738738
endif()
739739

740740
if(EXECUTORCH_BUILD_XNNPACK)
741-
# need to explicitly specify XNNPACK here otherwise uses XNNPACK symbols
742-
# from libtorch_cpu
743-
list(APPEND _dep_libs xnnpack_backend XNNPACK)
741+
# need to explicitly specify XNNPACK and microkernels-prod
742+
# here otherwise uses XNNPACK and microkernel-prod symbols from libtorch_cpu
743+
list(APPEND _dep_libs xnnpack_backend XNNPACK microkernels-prod)
744744
endif()
745745

746746
# compile options for pybind

0 commit comments

Comments
 (0)