From dd08abc3289d6dde39524f60d68ee19f40f60f13 Mon Sep 17 00:00:00 2001 From: Max Ren <40742183+mcr229@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:14:42 -0500 Subject: [PATCH] Fix xnn linkage issue when building wheels (#7173) --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e1df22bc8..46fec4cf0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -742,9 +742,9 @@ if(EXECUTORCH_BUILD_PYBIND) endif() if(EXECUTORCH_BUILD_XNNPACK) - # need to explicitly specify XNNPACK here otherwise uses XNNPACK symbols - # from libtorch_cpu - list(APPEND _dep_libs xnnpack_backend XNNPACK) + # need to explicitly specify XNNPACK and microkernels-prod + # here otherwise uses XNNPACK and microkernel-prod symbols from libtorch_cpu + list(APPEND _dep_libs xnnpack_backend XNNPACK microkernels-prod) endif() # compile options for pybind