From 10a12888f8104f22fbbe19f62cc0785038a30018 Mon Sep 17 00:00:00 2001 From: Max Ren Date: Wed, 4 Dec 2024 04:20:22 -0500 Subject: [PATCH] Fix xnn linkage issue when building wheels --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b242b1ded..4fc7a12ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -738,9 +738,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