Skip to content

Commit 0d6b7fe

Browse files
authored
Fix gcc version check in absence of gcc compiler
1 parent 2ddcdaf commit 0d6b7fe

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmake/system.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,7 @@ if (${TARGET} STREQUAL NEOVERSEV1)
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)
384385
execute_process(COMMAND ${CMAKE_C_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION)
385386
if (${GCC_VERSION} VERSION_GREATER 10.4 OR ${GCC_VERSION} VERSION_EQUAL 10.4)
386387
set (KERNEL_DEFINITIONS "${KERNEL_DEFINITIONS} -march=armv8.2-a+sve -mtune=a64fx")

0 commit comments

Comments
 (0)