File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -367,13 +367,13 @@ if (${TARGET} STREQUAL NEOVERSEV1)
367367 endif ()
368368 if (${TARGET} STREQUAL ARMV9SME)
369369 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=armv9-a+sme -O3" )
370- if (${OSNAME } STREQUAL WINDOWS AND ${CMAKE_C_COMPILER_ID} MATCHES "Clang" )
370+ if (${CMAKE_SYSTEM_NAME } STREQUAL Windows AND ${CMAKE_C_COMPILER_ID} MATCHES "Clang" )
371371 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} --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" )
376- if (${OSNAME } STREQUAL WINDOWS AND ${CMAKE_C_COMPILER_ID} MATCHES "Clang" )
376+ if (${CMAKE_SYSTEM_NAME } STREQUAL Windows AND ${CMAKE_C_COMPILER_ID} MATCHES "Clang" )
377377 set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} --aarch64-stack-hazard-size=0" )
378378 endif ()
379379 endif ()
You can’t perform that action at this time.
0 commit comments