]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
add missing compile flags
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Mon, 26 Jul 2021 18:09:12 +0000 (21:09 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Tue, 12 Oct 2021 08:51:34 +0000 (11:51 +0300)
CMakeLists.txt
util/CMakeLists.txt

index 7a172bb355006f5b5cfc2fe822eba9e498943cb7..72eef428e60ac95b7a8c2168bc5234f118e14088 100644 (file)
@@ -1358,7 +1358,7 @@ else (FAT_RUNTIME)
             add_library(hs_exec_shared_avx2 OBJECT ${hs_exec_SRCS} ${hs_exec_avx2_SRCS})
             list(APPEND RUNTIME_SHLIBS $<TARGET_OBJECTS:hs_exec_shared_avx2>)
             set_target_properties(hs_exec_shared_avx2 PROPERTIES
-                COMPILE_FLAGS "-march=core-avx2"
+                COMPILE_FLAGS "-march=core-avx2 -mavx2"
                 POSITION_INDEPENDENT_CODE TRUE
                 RULE_LAUNCH_COMPILE "${BUILD_WRAPPER} avx2 ${CMAKE_MODULE_PATH}/keep.syms.in"
                 )
index 861f2f085a89072f6a7e9528de9ade2724b72f67..82cee0ffa62148f013956b54dbb375a0ab0053c6 100644 (file)
@@ -33,9 +33,9 @@ SET(corpusomatic_SRCS
     ng_find_matches.cpp
 )
 add_library(corpusomatic STATIC ${corpusomatic_SRCS})
-if (ARCH_IA32)
+if (ARCH_IA32 OR ARCH_X86_64)
     set_target_properties(corpusomatic PROPERTIES COMPILE_FLAGS "-mssse3")
-endif (ARCH_IA32)
+endif ()
 
 set(databaseutil_SRCS
     database_util.cpp