File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,12 +157,12 @@ endif()
157157endif ()
158158
159159if (NOT NO_SME)
160- file (WRITE ${PROJECT_BINARY_DIR } /sme.c ".text \n .global sme_test\n\n sme_test:\n smstart\n smstop\n ret\n " )
161- execute_process (COMMAND ${CMAKE_C_COMPILER } -march=armv9-a+sve2+sme -c -v -o ${PROJECT_BINARY_DIR } /sme.o ${PROJECT_BINARY_DIR } /sme.c OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE NO_SME )
160+ file (WRITE ${PROJECT_BINARY_DIR } /sme.S ".text \n .global sme_test\n\n sme_test:\n smstart\n smstop\n ret\n " )
161+ execute_process (COMMAND ${CMAKE_C_COMPILER } -march=armv9-a+sve2+sme -c -v -o ${PROJECT_BINARY_DIR } /sme.o ${PROJECT_BINARY_DIR } /sme.S OUTPUT_QUIET ERROR_QUIET RESULT_VARIABLE NO_SME )
162162if (NO_SME EQUAL 1)
163163set (CCOMMON_OPT "${CCOMMON_OPT} -DNO_SME" )
164164endif ()
165- file (REMOVE "${PROJECT_BINARY_DIR } /sme.c " "${PROJECT_BINARY_DIR } /sme.o" )
165+ file (REMOVE "${PROJECT_BINARY_DIR } /sme.S " "${PROJECT_BINARY_DIR } /sme.o" )
166166endif ()
167167endif ()
168168
You can’t perform that action at this time.
0 commit comments