File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ foreach(fbs_file ${_xnnpack_schema__srcs})
59
59
)
60
60
endforeach ()
61
61
62
- if (WIN32 AND NOT CMAKE_CROSSCOMPILING )
62
+ if (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows" )
63
63
set (MV_COMMAND
64
64
powershell -Command
65
65
"Move-Item -Path ${_xnnpack_flatbuffer__outputs} -Destination ${_xnnpack_schema__outputs} "
Original file line number Diff line number Diff line change @@ -12,10 +12,15 @@ set_overridable_option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON)
12
12
set_overridable_option (EXECUTORCH_BUILD_EXTENSION_MODULE ON )
13
13
set_overridable_option (EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON )
14
14
set_overridable_option (EXECUTORCH_BUILD_EXTENSION_TENSOR ON )
15
+ set_overridable_option (EXECUTORCH_BUILD_XNNPACK ON )
16
+
17
+ # These XNNPACK options don't currently build on Windows.
18
+ set_overridable_option (XNNPACK_ENABLE_AVX256SKX OFF )
19
+ set_overridable_option (XNNPACK_ENABLE_AVX256VNNI OFF )
20
+ set_overridable_option (XNNPACK_ENABLE_AVX256VNNIGFNI OFF )
15
21
16
22
# Below options are not yet buildable on Windows, but should be.
17
23
set (EXECUTORCH_BUILD_PORTABLE_OPS OFF CACHE BOOL "" )
18
24
#set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON)
19
25
#set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)
20
26
#set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED ON)
21
- #set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
You can’t perform that action at this time.
0 commit comments