File tree 3 files changed +12
-10
lines changed
3 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -73,19 +73,27 @@ foreach(fbs_file ${_xnnpack_schema__srcs})
73
73
)
74
74
endforeach ()
75
75
76
+ if (WIN32 )
77
+ set (MV_COMMAND powershell -Command "Move-Item -Path ${_xnnpack_flatbuffer__outputs} -Destination ${_xnnpack_schema__outputs} " )
78
+ else ()
79
+ set (MV_COMMAND mv ${_xnnpack_flatbuffer__outputs} ${_xnnpack_schema__outputs} )
80
+ endif ()
81
+
76
82
# Generate the headers from the .fbs files.
77
83
add_custom_command (
78
84
OUTPUT ${_xnnpack_schema__outputs}
79
85
COMMAND
80
86
${FLATC_EXECUTABLE} --cpp --cpp-std c++11 --scoped-enums -o
81
87
"${_xnnpack_schema__include_dir} /executorch/backends/xnnpack/serialization"
82
88
${_xnnpack_schema__srcs}
83
- COMMAND mv ${_xnnpack_flatbuffer__outputs} ${_xnnpack_schema__outputs }
89
+ COMMAND ${MV_COMMAND }
84
90
WORKING_DIRECTORY ${EXECUTORCH_ROOT}
85
91
COMMENT "Generating xnnpack_schema headers"
86
92
VERBATIM
87
93
)
88
94
95
+ unset (MV_COMMAND)
96
+
89
97
add_library (xnnpack_schema INTERFACE ${_xnnpack_schema__outputs} )
90
98
set_target_properties (xnnpack_schema PROPERTIES LINKER_LANGUAGE CXX)
91
99
target_include_directories (
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|armv7)$")
49
49
list (APPEND _custom_ops__srcs
50
50
"extension/llm/custom_ops/spinquant/third-party/FFHT/fht_neon.c"
51
51
)
52
- elseif (CMAKE_SYSTEM_PROCESSOR STREQUAL " x86_64" )
52
+ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^( x86_64|AMD64) " )
53
53
list (APPEND _custom_ops__srcs
54
54
"extension/llm/custom_ops/spinquant/third-party/FFHT/fht_avx.c"
55
55
)
Original file line number Diff line number Diff line change @@ -7,14 +7,8 @@ rem This batch file provides a basic functionality similar to the bash script.
7
7
8
8
cd /d " %~dp0 "
9
9
10
- rem Find the names of the python tools to use (replace with your actual python installation)
11
- if " %PYTHON_EXECUTABLE% " == " " (
12
- if " %CONDA_DEFAULT_ENV% " == " " OR " %CONDA_DEFAULT_ENV% " == " base" OR NOT EXIST " python" (
13
- set PYTHON_EXECUTABLE = python3
14
- ) else (
15
- set PYTHON_EXECUTABLE = python
16
- )
17
- )
10
+ rem Under windows, it's always python
11
+ set PYTHON_EXECUTABLE = python
18
12
19
13
" %PYTHON_EXECUTABLE% " install_executorch.py %*
20
14
You can’t perform that action at this time.
0 commit comments