File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -135,14 +135,20 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
135
135
endif ()
136
136
137
137
# show enabled features
138
+ if (CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" )
139
+ set (FEAT_INPUT_FILE "NUL" )
140
+ else ()
141
+ set (FEAT_INPUT_FILE "/dev/null" )
142
+ endif ()
143
+
138
144
execute_process (
139
145
COMMAND ${CMAKE_C_COMPILER} ${ARCH_FLAGS} -dM -E -
140
- INPUT_FILE "/dev/null"
146
+ INPUT_FILE ${FEAT_INPUT_FILE}
141
147
OUTPUT_VARIABLE ARM_FEATURE
142
148
RESULT_VARIABLE ARM_FEATURE_RESULT
143
149
)
144
150
if (ARM_FEATURE_RESULT)
145
- message (FATAL_ERROR "Failed to get ARM features" )
151
+ message (WARNING "Failed to get ARM features" )
146
152
else ()
147
153
foreach (feature DOTPROD SVE MATMUL_INT8 FMA FP16_VECTOR_ARITHMETIC)
148
154
string (FIND "${ARM_FEATURE} " "__ARM_FEATURE_${feature} 1" feature_pos)
You can’t perform that action at this time.
0 commit comments