Description: trim unconditional -march=native. Author: Étienne Mollier Forwarded: not-needed Last-Update: 2025-11-17 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- abpoa.orig/CMakeLists.txt +++ abpoa/CMakeLists.txt @@ -181,9 +181,8 @@ target_compile_definitions(abpoa PRIVATE __AVX2__) else() - # Fallback: single compile with -march=native + # Fallback: single compile target_sources(abpoa PRIVATE src/abpoa_align_simd.c) - target_compile_options(abpoa PRIVATE -march=native) endif() if(ABPOA_BUILD_EXE) --- abpoa.orig/Makefile +++ abpoa/Makefile @@ -49,9 +49,6 @@ # This is everything that gets bundled into our main library BASIC_OBJS = $(addprefix $(SRC_DIR)/, abpoa_align.o abpoa_graph.o abpoa_plot.o abpoa_seed.o abpoa_seq.o abpoa_output.o abpoa_simd.o kalloc.o kstring.o utils.o) -# Set default SIMD flags -SIMD_FLAG = -march=native - OBJS = ${BASIC_OBJS} $(addprefix $(SRC_DIR)/, abpoa_align_simd.o) # auto-detect some appropriate defaults -- this helps users in the common case of macOS with arm --- abpoa.orig/setup.py +++ abpoa/setup.py @@ -29,7 +29,7 @@ elif machine_arch.startswith("riscv"): simd_flag = ['-D__AVX2__'] else: # x86_64 - simd_flag=['-march=native'] + simd_flag=[] if os.getenv('SSE4', False): simd_flag=['-msse4.1'] elif os.getenv('SSE2', False):