diff --git a/CMakeLists.txt b/CMakeLists.txt index ec3611f..520ba4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,11 +7,19 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) -set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic -march=native") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic") set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +option(sword_optimize_for_portability "Build sword with -msse4.1" OFF) + +if (sword_optimize_for_portability) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -msse4.1") +else () + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native") +endif () + add_executable(sword src/chain.cpp src/database_alignment.cpp diff --git a/src/main.cpp b/src/main.cpp index e070319..095caea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,7 +13,7 @@ #include "database_alignment.hpp" #include "utils.hpp" -static const char* version = "v1.0.3"; +static const char* version = "v1.0.4"; static struct option options[] = { {"query", required_argument, 0, 'i'}, diff --git a/vendor/thread_pool b/vendor/thread_pool index 048da94..5f3c48a 160000 --- a/vendor/thread_pool +++ b/vendor/thread_pool @@ -1 +1 @@ -Subproject commit 048da9485390ee8b8a7ecedccc598a06ca4429e2 +Subproject commit 5f3c48acc837a9019dd8cc71675723f932f75f32