Skip to content

Commit cd8a1e1

Browse files
committed
Fix cmsis_nn BuiltExtension for windows.
Signed-off-by: Erik Lundell <erik.lundell@arm.com> Change-Id: Ia9f9239e0a19b47a4a8480b86693a5f9236beff5
1 parent 14da940 commit cd8a1e1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,8 @@ def run(self): # noqa C901
10991099
dependent_cmake_flags=["EXECUTORCH_BUILD_PYBIND"],
11001100
),
11011101
BuiltExtension(
1102-
src="cmsis_nn.*",
1103-
src_dir="backends/cortex_m/cmsis_nn-build",
1102+
src="cmsis_nn.cp*" if _is_windows() else "cmsis_nn.*",
1103+
src_dir="backends/cortex_m/cmsis_nn-build/%BUILD_TYPE%/",
11041104
modpath="executorch.backends.cortex_m.library._cmsis_nn.cmsis_nn",
11051105
dependent_cmake_flags=[
11061106
"EXECUTORCH_BUILD_CMSIS_NN_PYBINDS",

0 commit comments

Comments
 (0)