]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
include extra sources for Arm on non-fat builds
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sat, 7 Oct 2023 14:27:26 +0000 (22:27 +0800)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Sat, 7 Oct 2023 14:27:26 +0000 (22:27 +0800)
CMakeLists.txt

index bde8b7e6e6859292a324714d1e15a9ba7d6edcf7..ad7ed18088d7a9f7f335a2cb7b40c2b2484651f3 100644 (file)
@@ -820,6 +820,8 @@ set (hs_exec_neon_SRCS
     src/nfa/vermicelli_simd.cpp)
 set (hs_exec_sve_SRCS
     src/nfa/vermicelli_simd.cpp)
+set (hs_exec_sve2_SRCS
+    src/nfa/vermicelli_simd.cpp)
 
 set (hs_exec_avx2_SRCS
     src/fdr/teddy_avx2.c
@@ -1278,8 +1280,14 @@ if (NOT FAT_RUNTIME)
         set(hs_exec_SRCS ${hs_exec_SRCS} ${hs_exec_avx2_SRCS})
     endif()
 
-    if (NOT BUILD_SVE2)
-        set(hs_exec_SRCS ${hs_exec_SRCS} ${hs_exec_neon_SRCS})
+    if (ARCH_AARCH64)
+        if (BUILD_SVE2)
+            set(hs_exec_SRCS ${hs_exec_SRCS} ${hs_exec_sve2_SRCS})
+        elseif (BUILD_SVE)
+            set(hs_exec_SRCS ${hs_exec_SRCS} ${hs_exec_sve_SRCS})
+        else()
+            set(hs_exec_SRCS ${hs_exec_SRCS} ${hs_exec_neon_SRCS})
+        endif()
     endif()
 
     if (BUILD_STATIC_LIBS)