File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,22 +368,20 @@ if (${TARGET} STREQUAL NEOVERSEV1)
368368 if (${TARGET} STREQUAL ARMV9SME)
369369 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=armv9-a+sme -O3" )
370370 if (${CMAKE_SYSTEM_NAME } STREQUAL Windows AND ${CMAKE_C_COMPILER_ID } MATCHES "Clang" )
371- set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} --aarch64-stack-hazard-size=0" )
371+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mllvm - -aarch64-stack-hazard-size=0" )
372372 endif ()
373373 endif ()
374374 if (${TARGET} STREQUAL VORTEXM4)
375375 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=armv8.4-a+sme -O3" )
376376 if (${CMAKE_SYSTEM_NAME } STREQUAL Windows AND ${CMAKE_C_COMPILER_ID } MATCHES "Clang" )
377- set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} --aarch64-stack-hazard-size=0" )
377+ set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -mllvm - -aarch64-stack-hazard-size=0" )
378378 endif ()
379379 endif ()
380380 if (${TARGET} STREQUAL A64FX)
381381 if (${CMAKE_C_COMPILER_ID } STREQUAL "PGI" AND NOT NO_SVE)
382382 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -Msve-intrinsics -march=armv8.2-a+sve -mtune=a64fx" )
383383 else ()
384- set (GCC_VERSION 0.0)
385- execute_process (COMMAND ${CMAKE_C_COMPILER } -dumpversion OUTPUT_VARIABLE GCC_VERSION )
386- if (${GCC_VERSION} VERSION_GREATER 10.4 OR ${GCC_VERSION} VERSION_EQUAL 10.4)
384+ if (CMAKE_C_COMPILER_VERSION VERSION_GREATER 10.4 OR CMAKE_C_COMPILER_VERSION VERSION_EQUAL 10.4)
387385 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=armv8.2-a+sve -mtune=a64fx" )
388386 else ()
389387 message (FATAL_ERROR "Compiler $${CMAKE_C_COMPILER } {GCC_VERSION} does not support A64FX." )
You can’t perform that action at this time.
0 commit comments