Commit de0e5fe1 authored by Sergey Vojtovich's avatar Sergey Vojtovich

MDEV-14541 - Workaround GCC ICE on ARM64

-fno-tree-loop-vectorize is only supported by gcc versions >5.
parent 1025363a
......@@ -179,6 +179,7 @@ if(GRN_WITH_MRUBY)
endif()
# Workaround GCC ICE on ARM64
IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64" AND
CMAKE_C_COMPILER_VERSION VERSION_GREATER "5")
ADD_COMPILE_FLAGS(ts/ts_expr_node.c COMPILE_FLAGS "-fno-tree-loop-vectorize")
ENDIF()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment