Skip to content

Commit 5184e26

Browse files
committed
a64: Enable -flax-vector-conversions for GCC
Allow neon register types to be implicitly casted and aliased.
1 parent b3a8f51 commit 5184e26

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,13 @@ elseif( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
9797

9898
# add_compile_options(-march=native)
9999

100+
if( CMAKE_COMPILER_IS_GNUCXX )
101+
# Allow neon register-types to be implicitly casted and reinterpreted
102+
add_compile_options(
103+
-flax-vector-conversions
104+
)
105+
endif()
106+
100107
add_compile_options(
101108
-Wall
102109
-Warray-bounds

0 commit comments

Comments
 (0)